New python module gdb.types.
* NEWS: Document it. * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py. * python/lib/gdb/types.py: New file. testsuite/ * lib/gdb-python.exp (gdb_check_python_config): New function. * gdb.python/Makefile.in (EXECUTABLES): Add lib-types. * gdb.python/lib-types.cc: New file. * gdb.python/lib-types.exp: New file. doc/ * gdb.texinfo (Python): Add "Python modules". (Types in Python): Add reference to gdb.types section. (Python modules): New node.
This commit is contained in:
parent
577ce03a7c
commit
0e3509dbce
11 changed files with 392 additions and 2 deletions
|
@ -45,3 +45,21 @@ proc gdb_py_test_multiple { name args } {
|
|||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
# Establish various python configuration parameters if necessary.
|
||||
# E.g. sys.path.
|
||||
|
||||
proc gdb_check_python_config { } {
|
||||
global USE_INSTALLED_TREE
|
||||
# If we're running an installed version of gdb, and we want to test the
|
||||
# installed versions of the python support scripts, then we don't want
|
||||
# to point data-directory at the build tree.
|
||||
if { [info exists USE_INSTALLED_TREE] && "$USE_INSTALLED_TREE" == "yes" } {
|
||||
verbose -log "Assuming system config already installed."
|
||||
} else {
|
||||
verbose -log "Installing system config from build tree."
|
||||
set gdb_data_dir "[pwd]/../data-directory"
|
||||
gdb_test_no_output "set data-directory $gdb_data_dir"
|
||||
gdb_test_no_output "python GdbSetPythonDirectory ('$gdb_data_dir/python')"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue