This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI command for obtaining symbol given an address
- From: Tom Tromey <tromey at redhat dot com>
- To: "Phil \(Philip\) Mason" <phil dot mason at broadcom dot com>
- Cc: "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 01 Nov 2011 13:19:00 -0600
- Subject: Re: MI command for obtaining symbol given an address
- References: <C28713F579DB094D828AF937C214266A18D357E8EB@SJEXCHCCR01.corp.ad.broadcom.com>
>>>>> "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