diff options
author | Doug Evans <dje@google.com> | 2011-08-12 22:21:57 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-08-12 22:21:57 +0000 |
commit | 457e09f0601b9b3bbad55110af858bf25b02a69e (patch) | |
tree | 64b827bdb71bc4ea492d84638b378930b5413793 /gdb/doc | |
parent | 505b88fb5d0725884d473d5a208e604bbda54c4f (diff) | |
download | gdb-457e09f0601b9b3bbad55110af858bf25b02a69e.zip gdb-457e09f0601b9b3bbad55110af858bf25b02a69e.tar.gz gdb-457e09f0601b9b3bbad55110af858bf25b02a69e.tar.bz2 |
* NEWS: Mention new "type" attribute of python gdb.Symbol objects.
* python/py-symbol.c (sympy_get_type): New function.
(symbol_object_getset): Add "type".
doc/
* gdb.texinfo (Symbols In Python): Document symbol.type.
testsuite/
* gdb.python/py-symbol.exp: Add test for symbol.type.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index dbef2b1..f9baf48 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-08-12 Doug Evans <dje@google.com> + + * gdb.texinfo (Symbols In Python): Document symbol.type. + 2011-08-09 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Python): Document command and function diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 9a0c8db..3157ccb 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -23198,6 +23198,12 @@ is not found. A @code{gdb.Symbol} object has the following attributes: @table @code +@defivar Symbol type +The type of the symbol or @code{None} if no type is recorded. +This attribute is represented as a @code{gdb.Type} object. +@xref{Types In Python}. This attribute is not writable. +@end defivar + @defivar Symbol symtab The symbol table in which the symbol appears. This attribute is represented as a @code{gdb.Symtab} object. @xref{Symbol Tables In |