Add gdb.lookup_global_symbol python function.
authorDoug Evans <dje@google.com>
Tue, 22 Feb 2011 22:48:12 +0000 (22:48 +0000)
committerDoug Evans <dje@google.com>
Tue, 22 Feb 2011 22:48:12 +0000 (22:48 +0000)
commit6e6fbe60bc0412fec955d539b445b66b14a04e69
tree369fa1e0716583cb0acf3890749ec42a6d0fae4b
parent1d41d745ca37dc95f93c8e1a148b3c46c85d7273
Add gdb.lookup_global_symbol python function.
* NEWS: Add entry.
* python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
* python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
* python/python.c (GdbMethods): Add entry for lookup_global_symbol.

doc/
* gdb.texinfo (Symbols In Python): Document lookup_global_symbol.
Clarify behaviour of lookup_symbol when `block' argument is omitted,
add description of result, fix @defun formatting.

testsuite/
* gdb.python/py-symbol.exp: Test lookup_global_symbol.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/python/py-symbol.c
gdb/python/python-internal.h
gdb/python/python.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-symbol.exp