diff options
author | Doug Evans <dje@google.com> | 2014-09-18 10:09:12 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-09-18 10:09:12 -0700 |
commit | 2b4fd423cf503beb6264590f0517d35f17a6ab8d (patch) | |
tree | 6cd77a3fb9668459b2262f83874cd31e3c361281 /gdb/doc/python.texi | |
parent | 92c9bcd479e4cb388a7f286fc42414b115cfc656 (diff) | |
download | gdb-2b4fd423cf503beb6264590f0517d35f17a6ab8d.zip gdb-2b4fd423cf503beb6264590f0517d35f17a6ab8d.tar.gz gdb-2b4fd423cf503beb6264590f0517d35f17a6ab8d.tar.bz2 |
New "producer" attribute of python gdb.Symtab.
gdb/ChangeLog:
* NEWS: Mention new "producer" attribute of gdb.Symtab.
* python/py-symtab.c (stpy_get_producer): New function.
(symtab_object_getset): Add "producer" attribute.
gdb/doc/ChangeLog:
* python.texi (Symbol Tables In Python): Document "producer"
attribute of gdb.Symtab objects.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/symtab-producer.exp: New file.
Diffstat (limited to 'gdb/doc/python.texi')
-rw-r--r-- | gdb/doc/python.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 9f44948..81ec11b 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -4043,6 +4043,14 @@ The symbol table's backing object file. @xref{Objfiles In Python}. This attribute is not writable. @end defvar +@defvar Symtab.producer +The name and possibly version number of the program that +compiled the code in the symbol table. +The contents of this string is up to the compiler. +If no producer information is available then @code{None} is returned. +This attribute is not writable. +@end defvar + A @code{gdb.Symtab} object has the following methods: @defun Symtab.is_valid () |