This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/23796] New: [Feature Request] "info functions" equivalent for python


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]