From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24923 invoked by alias); 2 Aug 2008 07:57:06 -0000 Received: (qmail 24911 invoked by uid 22791); 2 Aug 2008 07:57:05 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 02 Aug 2008 07:56:40 +0000 Received: from kahikatea.snap.net.nz (86.30.255.123.static.snap.net.nz [123.255.30.86]) by viper.snap.net.nz (Postfix) with ESMTP id 7F5BB3DA582; Sat, 2 Aug 2008 19:56:37 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 85ABC8FC6D; Sat, 2 Aug 2008 19:56:32 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18580.4911.596091.290265@kahikatea.snap.net.nz> Date: Sat, 02 Aug 2008 07:57:00 -0000 To: "Eran Ifrah" Cc: gdb@sourceware.org Subject: Re: GDB MI - differences in -var-create output In-Reply-To: References: X-Mailer: VM 7.19 under Emacs 22.2.50.3 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/msg00040.txt.bz2 > 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. 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