From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18967 invoked by alias); 2 Aug 2008 07:33:02 -0000 Received: (qmail 18917 invoked by uid 22791); 2 Aug 2008 07:33:01 -0000 X-Spam-Check-By: sourceware.org Received: from wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 02 Aug 2008 07:32:44 +0000 Received: by wf-out-1314.google.com with SMTP id 28so1274127wfc.24 for ; Sat, 02 Aug 2008 00:32:42 -0700 (PDT) Received: by 10.142.77.11 with SMTP id z11mr4079876wfa.337.1217662362253; Sat, 02 Aug 2008 00:32:42 -0700 (PDT) Received: by 10.142.164.15 with HTTP; Sat, 2 Aug 2008 00:32:42 -0700 (PDT) Message-ID: Date: Sat, 02 Aug 2008 07:33:00 -0000 From: "Eran Ifrah" To: gdb@sourceware.org Subject: GDB MI - differences in -var-create output In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00039.txt.bz2 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 - * 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