public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Disambiguating symbols by module
@ 2021-09-02 20:48 Alexander Miloslavskiy
  2021-09-03 14:31 ` Matt Rice
  2021-09-03 16:25 ` Christian Biesinger
  0 siblings, 2 replies; 9+ messages in thread
From: Alexander Miloslavskiy @ 2021-09-02 20:48 UTC (permalink / raw)
  To: gdb

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?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-03 20:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 20:48 Disambiguating symbols by module Alexander Miloslavskiy
2021-09-03 14:31 ` Matt Rice
2021-09-03 14:35   ` Alexander Miloslavskiy
2021-09-03 14:53     ` Matt Rice
2021-09-03 14:57       ` Alexander Miloslavskiy
2021-09-03 16:06         ` Martin Simmons
2021-09-03 16:13           ` Alexander Miloslavskiy
2021-09-03 16:25 ` Christian Biesinger
2021-09-03 20:58   ` Alexander Miloslavskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).