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:
parent
a80db0157c
commit
d096d8c11e
7 changed files with 43 additions and 0 deletions
|
@ -3392,6 +3392,11 @@ class.
|
|||
The file name of the objfile as a string.
|
||||
@end defvar
|
||||
|
||||
@defvar Objfile.progspace
|
||||
The containing program space of the objfile as a @code{gdb.Progspace}
|
||||
object. @xref{Progspaces In Python}.
|
||||
@end defvar
|
||||
|
||||
@defvar Objfile.pretty_printers
|
||||
The @code{pretty_printers} attribute is a list of functions. It is
|
||||
used to look up pretty-printers. A @code{Value} is passed to each
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue