old-cross-binutils/gdb/python
Doug Evans fa33c3cd05 * NEWS: Add entry for python program space support.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
	(SUBDIR_PYTHON_SRCS): Add py-progspace.c.
	(py-progspace.o): New rule.
	* python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
	function.
	(find_pretty_printer_from_progspace): New function.
	(find_pretty_printer_from_gdb): New function.
	(find_pretty_printer): Rewrite.
	* python/py-progspace.c: New file.
	* python/python-internal.h (program_space): Add forward decl.
	(pspace_to_pspace_object, pspy_get_printers): Declare.
	(gdbpy_initialize_pspace): Declare.
	* python/python.c: #include "progspace.h".
	(gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
	(_initialize_python): Call gdbpy_initialize_pspace.
	(GdbMethods): Add current_progspace, progspaces.

	doc/
	* gdb.texinfo (Python API): Add progspaces section.
	(Selecting Pretty-Printers): Progspace pretty-printers are
	searched too.
	(Progspaces In Python): New section.

	testsuite/
	* gdb.python/py-progspace.c: New file.
	* gdb.python/py-progspace.exp: New file.
2010-04-15 19:54:13 +00:00
..
py-block.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-breakpoint.c 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> 2010-04-09 09:41:43 +00:00
py-cmd.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-frame.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-function.c Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
py-lazy-string.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-objfile.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-prettyprint.c * NEWS: Add entry for python program space support. 2010-04-15 19:54:13 +00:00
py-progspace.c * NEWS: Add entry for python program space support. 2010-04-15 19:54:13 +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-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-type.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
py-utils.c gdb 2010-03-05 20:18:19 +00:00
py-value.c 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> 2010-04-14 13:18:55 +00:00
python-internal.h * NEWS: Add entry for python program space support. 2010-04-15 19:54:13 +00:00
python.c * NEWS: Add entry for python program space support. 2010-04-15 19:54:13 +00:00
python.h Add -s option to source command. 2010-04-15 17:45:57 +00:00