This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
RE: Is there an example of how to use the gdb/mi interface ?
- To: "'Andrew Cagney'" <ac131313 at cygnus dot com>
- Subject: RE: Is there an example of how to use the gdb/mi interface ?
- From: "Robert" <robert dot melchers at drives dot eurotherm dot co dot uk>
- Date: Tue, 16 May 2000 16:06:22 +0100
- Cc: <gdb at sourceware dot cygnus dot com>
nm is fine for getting the base address of a structure, what I am after is finding the address of an
element of a structure. In gdb I would type "print &data.input" and get 0x12341234 in response.
The example I was looking for is a program that attached/launched/loaded gbd and performed some sort
of simple query using the MI interface.
Thanks in advance.
> -----Original Message-----
> From: gdb-owner@sourceware.cygnus.com
> [mailto:gdb-owner@sourceware.cygnus.com]On Behalf Of Andrew Cagney
> Sent: 15 May 2000 01:18
> To: Robert
> Cc: gdb@sourceware.cygnus.com
> Subject: Re: Is there an example of how to use the gdb/mi interface ?
>
>
> > Robert wrote:
> >
> > Does anyone have an example of how to use the gdb/mi
> interface ? All I
> > want to do is to get the address of a variable as gdb already knows
> > how to do this then why not use it.
>
> Examples of MI in use can be found in the documentation:
>
> http://sourceware.cygnus.com/gdb/onlinedocs/gdb_20.html#SEC191
>
> If all your after is the address of a global/static symbol
> then you may
> find GDB/MI overkill. NM is likely to be sufficient.
>
> Andrew
>