Disambiguating symbols by module
Alexander Miloslavskiy
alexandr.miloslavskiy@gmail.com
Thu Sep 2 20:48:00 GMT 2021
Hello,
I spend much time debugging Java with GDB.
In order to obtain current Java callstack, I do this:
(gdb) call (void)ps()
The problem is, the function's name is too short and gdb confuses it
with a variable in a different library:
(gdb) info var ^ps$
File ../../cipher/blowfish.c:
256: static const u32 ps[18];
(gdb) info function ^ps$
Non-debugging symbols:
0x00007ffff6d7a3b0 ps
Here, the symbol I want is a non-debugging symbol. This also means that
I can't disambiguate it by the source file name.
Is there a syntax to disambiguate the symbol?
More information about the Gdb
mailing list