binutils-gdb/gdb/testsuite/gdb.python
Doug Evans 07ca107c2d Add python gdb.GdbError and gdb.string_to_argv.
* NEWS: Document them.
	* python/py-cmd.c (cmdpy_function): Don't print a traceback if
	the exception is gdb.GdbError.  Print a second traceback if there's
	an error computing the error message.
	(gdbpy_string_to_argv): New function.
	* python/py-utils.c (gdbpy_obj_to_string): New function.
	(gdbpy_exception_to_string): New function.
	* python/python-internal.h (gdbpy_string_to_argv): Declare.
	(gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
	(gdbpy_gdberror_exc): Declare.
	* python/python.c (gdbpy_gdberror_exc): New global.
	(_initialize_python): Initialize gdbpy_gdberror_exc and create
	gdb.GdbError.
	(GdbMethods): Add string_to_argv.

	doc/
	* gdb.texinfo (Exception Handling): Document gdb.GdbError.
	(Commands In Python): Document gdb.string_to_argv.

	testsuite/
	* gdb.python/py-cmd.exp: Add tests for gdb.GdbError and
	gdb.string_to_argv.
2010-05-25 15:27:17 +00:00
..
Makefile.in 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> 2010-04-09 09:41:43 +00:00
py-block.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-block.exp 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-breakpoint.c 2010-04-12 Phil Muldoon <pmuldoon@redhat.com> 2010-04-12 09:49:35 +00:00
py-breakpoint.exp 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> 2010-04-09 09:41:43 +00:00
py-cmd.exp Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-frame.c 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> 2010-02-28 21:56:50 +00:00
py-frame.exp 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-function.exp 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 11:11:17 +00:00
py-mi.exp 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 12:02:46 +00:00
py-param.exp 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> 2010-04-29 15:45:57 +00:00
py-prettyprint.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 12:02:46 +00:00
py-prettyprint.exp 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 12:02:46 +00:00
py-prettyprint.py 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 12:02:46 +00:00
py-progspace.c * NEWS: Add entry for python program space support. 2010-04-15 19:54:13 +00:00
py-progspace.exp * NEWS: Add entry for python program space support. 2010-04-15 19:54:13 +00:00
py-section-script.c Add support for auto-loading scripts from .debug_gdb_scripts section. 2010-04-23 16:20:13 +00:00
py-section-script.exp Add support for auto-loading scripts from .debug_gdb_scripts section. 2010-04-23 16:20:13 +00:00
py-section-script.py Add support for auto-loading scripts from .debug_gdb_scripts section. 2010-04-23 16:20:13 +00:00
py-symbol.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-symbol.exp * gdb.cp/cp-relocate.exp: Remove single-quoting of C++ methods. 2010-03-09 18:08:05 +00:00
py-symtab.exp 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-template.cc Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
py-template.exp 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 11:11:17 +00:00
py-type.c Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
py-type.exp 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 11:11:17 +00:00
py-value.c 2010-04-08 Phil Muldoon <pmuldoon@redhat.com> 2010-04-08 10:28:42 +00:00
py-value.exp 2010-05-14 Phil Muldoon <pmuldoon@redhat.com> 2010-05-14 11:11:28 +00:00
python.exp * gdb.python/source2.py: New file. 2010-01-18 06:31:24 +00:00
source1 * gdb.python/source2.py: New file. 2010-01-18 06:31:24 +00:00
source2.py * gdb.python/source2.py: New file. 2010-01-18 06:31:24 +00:00