old-cross-binutils/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
..
py-auto-load.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-block.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-breakpoint.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-cmd.c Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-frame.c 2010-05-07 Michael Snyder <msnyder@vmware.com> 2010-05-07 19:26:30 +00:00
py-function.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-lazy-string.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-objfile.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-param.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-prettyprint.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-progspace.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-symbol.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-symtab.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-type.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-utils.c Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-value.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
python-internal.h Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
python.c Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
python.h * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using 2010-04-23 18:09:16 +00:00