Discussion:
[Bug python/23796] New: [Feature Request] "info functions" equivalent for python
korcankaraokcu at gmail dot com
2018-10-18 18:19:03 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23796

Bug ID: 23796
Summary: [Feature Request] "info functions" equivalent for
python
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: korcankaraokcu at gmail dot com
Target Milestone: ---

Parsing the output of "info functions" is a little bit hacky. The GDB-MI wiki
states that the equivalent command for "info functions" is
"-symbol-list-functions" but apparently it doesn't exist in GDB yet since it
gives the "undefined-command" error when invoked

I think symtab_symbol_info function in /gdb/symtab.c could be used to create a
new python function that returns all the symbols in a dictionary with the keys
{"variable", "function", "type"}
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...