* MI command for obtaining symbol given an address
@ 2011-10-31 16:29 Phil (Philip) Mason
2011-11-01 19:19 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Phil (Philip) Mason @ 2011-10-31 16:29 UTC (permalink / raw)
To: gdb
Hello all,
I'm trying to use the MI interface to obtain the symbol for an address (for example I'd use "info symbol 0x601260" at the CLI).
I can't find an equivalent command in the MI and none of the tricks I tried to use such as creating variable objects for the address location or using -data-read-memory-bytes (hoping it would provide symbol names like "x/50w 0x601260" does) seem to help either. Is there a way of obtaining symbol information through the MI?
Thanks in advance
Phil
--
Phil Mason
Broadcom Europe
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MI command for obtaining symbol given an address
2011-10-31 16:29 MI command for obtaining symbol given an address Phil (Philip) Mason
@ 2011-11-01 19:19 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2011-11-01 19:19 UTC (permalink / raw)
To: Phil (Philip) Mason; +Cc: gdb
>>>>> "Phil" == Phil (Philip) Mason <phil.mason@broadcom.com> writes:
Phil> I'm trying to use the MI interface to obtain the symbol for an address
Phil> (for example I'd use "info symbol 0x601260" at the CLI).
Phil> I can't find an equivalent command in the MI and none of the tricks I
Phil> tried to use such as creating variable objects for the address
Phil> location or using -data-read-memory-bytes (hoping it would provide
Phil> symbol names like "x/50w 0x601260" does) seem to help either. Is there
Phil> a way of obtaining symbol information through the MI?
I don't think so.
It seems like it would not be too hard to convert sym_info to use ui-out
and thus be MI-ready, though.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-01 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-31 16:29 MI command for obtaining symbol given an address Phil (Philip) Mason
2011-11-01 19:19 ` Tom Tromey
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).