old-cross-binutils/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/gdb * python/lib/gdb/command/pretty_printers.py 2010-11-10 23:44:14 +00:00
py-auto-load.c gdb/ 2010-09-22 20:00:53 +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-11-11 Phil Muldoon <pmuldoon@redhat.com> 2010-11-11 14:11:56 +00:00
py-cmd.c * python/py-cmd.c (cmdpy_function): Unreference exception state. 2010-10-19 20:11:37 +00:00
py-frame.c gdb/ 2010-10-13 13:24:40 +00:00
py-function.c gdb/ 2010-10-13 13:24:40 +00:00
py-inferior.c gdb/ 2010-10-13 13:24:40 +00:00
py-infthread.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-lazy-string.c PR python/11948: 2010-10-15 18:54:13 +00:00
py-objfile.c gdb/ 2010-09-22 20:00:53 +00:00
py-param.c gdb/ 2010-10-13 13:24:40 +00:00
py-prettyprint.c gdb 2010-11-12 20:49:43 +00:00
py-progspace.c gdb/ 2010-09-22 20:00:53 +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 Enable custom bcache hash function. 2010-08-31 17:26:08 +00:00
py-utils.c gdb 2010-11-12 20:49:43 +00:00
py-value.c gdb/ 2010-10-13 13:24:40 +00:00
python-config.py Resync python-config.py with Python-2.7 version. 2010-07-08 22:12:44 +00:00
python-internal.h gdb 2010-11-12 20:49:43 +00:00
python.c gdb 2010-11-12 20:49:43 +00:00
python.h * top.c: #include "python/python.h". 2010-11-02 16:48:43 +00:00