This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB MI - differences in -var-create output
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: "Eran Ifrah" <eran dot ifrah at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sat, 2 Aug 2008 19:56:31 +1200
- Subject: Re: GDB MI - differences in -var-create output
- References: <d557d0790808020028u155860b3k90bd8a793a804452@mail.gmail.com> <d557d0790808020032u17cda74k7b25c7dc383bae0a@mail.gmail.com>
> I have developed a GDB plugin for my IDE using the GDB Machine Interface.
>
> I have tested the plugin under Linux and Windows and it seems to
> function very good. However, under Mac OSX (10.5.2) (it works well,
> but only after I tweaked my GDB MI output parser a bit) the GDB MI
> output is a bit difference than the other OSs, for example, running
> this command:
>
> -var-create - * <expression>
> under Linux & Windows, provides the same output like this:
> ^done,name="var2",numchild="1",value="{...}",type="orxAABOX"
>
> However, under Mac I get this:
> ^done,name="var2",numchild="1",type="orxAABOX"
>
> Note the missing 'value={...}' part.
Apple have their own version of GDB which they use for Xcode. Their info
manual documents some (but not all) of the differences with FSF GDB.
> My question is this: is this a bug or by design, cause I hate leaving
> parts of my code under #if __MAC__ / #endif
It's not exactly design as I think Apple merge in some changes from the FSF
repository. It's just that the two versions have diverged somewhat.
--
Nick http://www.inet.net.nz/~nickrob