Discussion:
[Bug gdb/23899] New: [Feature Request] Add address field for defined functions in "info functions" command
korcankaraokcu at gmail dot com
2018-11-20 09:59:53 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23899

Bug ID: 23899
Summary: [Feature Request] Add address field for defined
functions in "info functions" command
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: korcankaraokcu at gmail dot com
Target Milestone: ---

The only way to find addresses of defined functions is to parse and use them
within stuff like p, x or gdb.parse_and_eval(). Non-debugging symbols can be
used directly with quotes. But defined symbols can't be used directly. For
instance:

void runtime.fastrand(uint32);

The symbol above only can be used when stripped down to 'runtime.fastrand'.
Using its full version will give this error:

No symbol "void runtime.fastrand(uint32);" in current context

The interesting thing is that "info functions" searches the given regex in
original symbol names. So, searching for "void" or "(uint32)" will result in
nothing but searching for "fastrand" will find the symbol. So I assume that the
original symbol is already known by gdb. Adding an option to reveal the
original symbol or an option to reveal address of it would be very useful
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...