old-cross-binutils/gdb/testsuite
Yit Phang Khoo b9516fa158 Refactor Python "gdb" module into a proper Python package, by introducing
a new "_gdb" module for code implemented in C, and using reload/__import__
instead of exec.

gdb/

	* python/lib/gdb/__init__.py: Import * from _gdb.
	(GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
	prompt_hook, sys.argv): Moved from finish_python_initialization.
	(pretty_printers, PYTHONDIR): Moved from _initialize_python.
	(packages, auto_load_packages): New list and function replacing
	module_dict and auto-loading code, using __file__ instead of
	gdb.PYTHONDIR and reload/__import__ instead of exec.
	(GdbSetPythonDirectory): Replacing function of the same name
	from finish_python_initialization, using reload/__import__ instead
	of exec, as well as call auto_load_packages.
	* python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
	gdb_python_module and not gdb_module.
	* python/python-internal.h (gdb_python_module): Declare.
	* python/python.c (gdb_python_module): New global.
	(before_prompt_hook): Check gdb_python_module and not gdb_module.
	(_initialize_python): Rename gdb module to _gdb.
	Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
	(finish_python_initialization): Move Python code to
	lib/gdb/__init__.py; instead, set up sys.path and import gdb into
	__main__.

gdb/testsuite/

	* gdb.python/python.exp (Test stderr location): Update module
	location of GDB-specific sys.stderr.
	(Test stdout location): Ditto for sys.stdout.
2012-09-13 21:49:32 +00:00
..
boards * boards/fission.exp: Explicitly mark "board" as not remote. 2012-09-10 17:48:11 +00:00
config
gdb.ada crash printing optimized out variant type 2012-09-10 22:18:24 +00:00
gdb.arch gdb/testsuite/ 2012-08-27 16:34:35 +00:00
gdb.asm
gdb.base gdb/testsuite/ 2012-09-13 05:32:09 +00:00
gdb.cell
gdb.cp * gdb.cp/converts.cc (main): Comment out the pointer to boolean 2012-09-12 23:29:05 +00:00
gdb.disasm
gdb.dwarf2 * gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name. 2012-09-11 16:42:09 +00:00
gdb.fortran
gdb.gdb 2012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu> 2012-09-08 05:29:21 +00:00
gdb.go
gdb.hp * gdb.hp/gdb.aCC/exception.exp: Remove. 2012-08-21 19:36:47 +00:00
gdb.java * lib/gdb.exp (skip_unwinder_tests): New proc. 2012-08-22 14:27:49 +00:00
gdb.linespec
gdb.mi gdb/ 2012-08-09 12:53:46 +00:00
gdb.modula2
gdb.multi
gdb.objc
gdb.opencl
gdb.opt
gdb.pascal
gdb.python Refactor Python "gdb" module into a proper Python package, by introducing 2012-09-13 21:49:32 +00:00
gdb.reverse
gdb.server * gdb.base/annota1.exp: Accept no frames-invalid notification 2012-08-02 15:59:59 +00:00
gdb.stabs
gdb.threads * gdb.base/annota1.exp: Accept no frames-invalid notification 2012-08-02 15:59:59 +00:00
gdb.trace gdb/ 2012-08-23 16:11:10 +00:00
gdb.xml
lib * lib/gdb.exp (skip_unwinder_tests): Don't leave 'ok' set if 2012-08-24 15:26:23 +00:00
aclocal.m4
ChangeLog Refactor Python "gdb" module into a proper Python package, by introducing 2012-09-13 21:49:32 +00:00
configure
configure.ac
dg-extract-results.sh
Makefile.in
TODO