* GDB MI - differences in -var-create output [not found] <d557d0790808020028u155860b3k90bd8a793a804452@mail.gmail.com> @ 2008-08-02 7:33 ` Eran Ifrah 2008-08-02 7:57 ` Nick Roberts 0 siblings, 1 reply; 2+ messages in thread From: Eran Ifrah @ 2008-08-02 7:33 UTC (permalink / raw) To: gdb Hi List, This is my first post here, so I hope that this is the correct place to ask this. 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. another difference, is in the -data-read-memory command output, On Windows & Linux, I get this: ...{addr="0x003d3e28",data=["0x00","0xab","0xab","0xab"],ascii="xxxx"}... But On Mac: ...{addr="0x003d3e28",data={"0x00","0xab","0xab","0xab"},ascii="xxxx"}... Note the change between square brackets & curly brackets just after the 'data=' part. My question is this: is this a bug or by design, cause I hate leaving parts of my code under #if __MAC__ / #endif -- Eran Ifrah eran.ifrah@gmail.com -- Eran Ifrah eran.ifrah@gmail.com ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GDB MI - differences in -var-create output 2008-08-02 7:33 ` GDB MI - differences in -var-create output Eran Ifrah @ 2008-08-02 7:57 ` Nick Roberts 0 siblings, 0 replies; 2+ messages in thread From: Nick Roberts @ 2008-08-02 7:57 UTC (permalink / raw) To: Eran Ifrah; +Cc: gdb > 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-02 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <d557d0790808020028u155860b3k90bd8a793a804452@mail.gmail.com>
2008-08-02 7:33 ` GDB MI - differences in -var-create output Eran Ifrah
2008-08-02 7:57 ` Nick Roberts
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox