mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 02:37:23 +08:00
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.
This commit is contained in:
@ -1145,6 +1145,10 @@ Return a Type corresponding to the given name." },
|
||||
Return a tuple with the symbol corresponding to the given name (or None) and\n\
|
||||
a boolean indicating if name is a field of the current implied argument\n\
|
||||
`this' (when the current language is object-oriented)." },
|
||||
{ "lookup_global_symbol", (PyCFunction) gdbpy_lookup_global_symbol,
|
||||
METH_VARARGS | METH_KEYWORDS,
|
||||
"lookup_global_symbol (name [, domain]) -> symbol\n\
|
||||
Return the symbol corresponding to the given name (or None)." },
|
||||
{ "block_for_pc", gdbpy_block_for_pc, METH_VARARGS,
|
||||
"Return the block containing the given pc value, or None." },
|
||||
{ "solib_name", gdbpy_solib_name, METH_VARARGS,
|
||||
|
Reference in New Issue
Block a user