old-cross-binutils/gdb/testsuite/gdb.python
Tom Tromey 621c83642d gdb
* varobj.c (value_get_print_value): Rearrange.  Pass stream to
	apply_varobj_pretty_printer.
	* c-lang.c: Include exceptions.h.
	(c_get_string): Throw MEMORY_ERROR when appropriate.
	* python/py-prettyprint.c (enum string_repr_result): New.
	(print_stack_unless_memory_error): New function.
	(print_string_repr): Change return type.  Use
	print_stack_unless_memory_error.
	(print_children): Use print_stack_unless_memory_error.
	(apply_val_pretty_printer): Update.  Don't print children if
	string representation threw an exception.
	(apply_varobj_pretty_printer): Add 'stream' argument.  Use
	print_stack_unless_memory_error.
	* python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
	globals.
	(_initialize_python): Initialize them.
	* python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
	gdbpy_convert_exception.
	(GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
	(gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
	(gdbpy_convert_exception): Declare.
	(apply_varobj_pretty_printer): Update.
	* python/py-utils.c (gdbpy_convert_exception): New function.
gdb/doc
	* gdb.texinfo (Basic Python): Update.  Add xref.
	(Exception Handling): Document new exception classes.
	(Types In Python): Update.
	(Frames In Python): Update.
gdb/testsuite
	* gdb.python/py-prettyprint.c (main): Add new 'ns2' local.
	* gdb.python/py-prettyprint.exp (run_lang_tests): Add test for
	MemoryError.
	* gdb.python/python.exp (gdb_py_test_multiple): Update exception
	type.
	* gdb.python/py-value.exp (test_value_in_inferior): Add test for
	MemoryError.
	(test_subscript_regression): Update exception type.
2010-11-12 20:49:43 +00:00
..
lib-types.cc New python module gdb.types. 2010-10-13 20:08:46 +00:00
lib-types.exp New python module gdb.types. 2010-10-13 20:08:46 +00:00
Makefile.in New python module gdb.types. 2010-10-13 20:08:46 +00:00
py-block.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-block.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +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-11-11 Phil Muldoon <pmuldoon@redhat.com> 2010-11-11 14:11:56 +00:00
py-cmd.exp Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-error.exp gdb/ 2010-10-13 13:24:40 +00:00
py-error.py gdb/ 2010-10-13 13:24:40 +00:00
py-frame.c 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> 2010-02-28 21:56:50 +00:00
py-frame.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +00:00
py-function.exp 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 11:11:17 +00:00
py-inferior.c * gdb.stabs/gdb11479.c (hack): New function. 2010-07-27 16:58:22 +00:00
py-inferior.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +00:00
py-infthread.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-infthread.exp 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-mi.exp 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 12:02:46 +00:00
py-parameter.exp * gdb.python/py-param.exp: Delete, contents moved to ... 2010-11-05 17:07:36 +00:00
py-pp-maint.c New python module gdb.printing, and new commands info pretty-printer, 2010-11-02 22:44:13 +00:00
py-pp-maint.exp New python module gdb.printing, and new commands info pretty-printer, 2010-11-02 22:44:13 +00:00
py-pp-maint.py New python module gdb.printing, and new commands info pretty-printer, 2010-11-02 22:44:13 +00:00
py-prettyprint.c gdb 2010-11-12 20:49:43 +00:00
py-prettyprint.exp gdb 2010-11-12 20:49:43 +00:00
py-prettyprint.py gdb 2010-10-18 19:14:03 +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-shared-sl.c * gdb.python/py-shared.exp: New file, factored out from 2010-08-19 17:00:58 +00:00
py-shared.c * gdb.python/py-shared.exp: New file, factored out from 2010-08-19 17:00:58 +00:00
py-shared.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +00:00
py-symbol.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-symbol.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +00:00
py-symtab.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +00:00
py-template.cc Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
py-template.exp 2010-06-08 Michael Snyder <msnyder@vmware.com> 2010-06-10 19:48:20 +00:00
py-type.c gdb 2010-07-28 20:50:17 +00:00
py-type.exp * lib/gdb-python.exp: New file. 2010-10-01 17:03:50 +00:00
py-value.c gdb 2010-08-23 20:29:19 +00:00
py-value.exp gdb 2010-11-12 20:49:43 +00:00
python-1.c * gdb.python/py-shared.exp: New file, factored out from 2010-08-19 17:00:58 +00:00
python.c * gdb.python/py-shared.exp: New file, factored out from 2010-08-19 17:00:58 +00:00
python.exp gdb 2010-11-12 20:49:43 +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