forked from Imagelibrary/binutils-gdb
Add gdb.Objfile.progspace attribute.
gdb/ChangeLog: * NEWS: Mention new gdb.Objfile.progspace attribute. * python/py-objfile.c (objfpy_get_progspace): New function. (objfile_getset): New entry for "progspace". gdb/doc/ChangeLog: * python.texi (Objfiles In Python): Document new progspace attribute. gdb/testsuite/ChangeLog: * gdb.python/py-objfile.exp: Test progspace attribute.
This commit is contained in:
@@ -39,6 +39,8 @@ gdb_py_test_silent_cmd "python objfile = sym\[0\].symtab.objfile" \
|
||||
|
||||
gdb_test "python print (objfile.filename)" ".*py-objfile.*" \
|
||||
"Get objfile file name"
|
||||
gdb_test "python print (objfile.progspace)" "<gdb\.Progspace object at .*>" \
|
||||
"Get objfile program space"
|
||||
gdb_test "python print (objfile.is_valid())" "True" \
|
||||
"Get objfile validity"
|
||||
gdb_unload
|
||||
|
||||
Reference in New Issue
Block a user