diff options
author | Siva Chandra Reddy <sivachandra@sourceware.org> | 2012-05-03 07:07:26 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@sourceware.org> | 2012-05-03 07:07:26 +0000 |
commit | a20ee7a4a9d43404d9c566453ba6c9578adc3596 (patch) | |
tree | ad28669e5464e65e747e23099c0c793830d9b9ab /gdb/doc | |
parent | bf2f0858b16a808a504f519e22b8f14aaa76cc10 (diff) | |
download | binutils-a20ee7a4a9d43404d9c566453ba6c9578adc3596.zip binutils-a20ee7a4a9d43404d9c566453ba6c9578adc3596.tar.gz binutils-a20ee7a4a9d43404d9c566453ba6c9578adc3596.tar.bz2 |
2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
Add two new methods global_block and static_block to gdb.Symtab
objects.
* NEWS (Python scripting): Add entry about the new methods.
* python/py-symtab.c (stpy_global_block): New function which
implements the gdb.Symtab.global_block() method.
(stpy_static_block): New function which implements the
gdb.Symtab.static_block() method.
(symtab_object_methods): Add entries for the two new methods.
* testsuite/gdb.python/py-symbol.exp: Add tests to test the new
methods gdb.Symtab.global_block() and gdb.Symtab.static_block().
* tessuite/gdb.python/py-symbol.c: Add new struct to help test
gdb.Symtab.static_block().
* doc/gdb.texinfo (Symbol Tables In Python): Add documentation
about the new methods global_block and static_block on
gdb.Symtab objects.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 385e919..8dd273c 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2012-05-03 Siva Chandra Reddy <sivachandra@google.com> + + * gdb.texinfo (Symbol Tables In Python): Add documentation about + the new methods global_block and static_block on gdb.Symtab + objects. + 2012-05-02 Siva Chandra Reddy <sivachandra@google.com> * gdb.texinfo (Blocks In Python): Add a note saying that future diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index e0b8529..014b39b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -25038,6 +25038,16 @@ if it is invalid at the time the method is called. @defun Symtab.fullname () Return the symbol table's source absolute file name. @end defun + +@defun Symtab.global_block () +Return the global block of the underlying symbol table. +@xref{Blocks In Python}. +@end defun + +@defun Symtab.static_block () +Return the static block of the underlying symbol table. +@xref{Blocks In Python}. +@end defun @end table @node Breakpoints In Python |