From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12450 invoked by alias); 28 Aug 2007 08:29:43 -0000 Received: (qmail 12352 invoked by uid 22791); 28 Aug 2007 08:29:42 -0000 X-Spam-Check-By: sourceware.org Received: from esparsett.troll.no (HELO esparsett.troll.no) (62.70.27.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Aug 2007 08:29:32 +0000 Received: from esparsett.troll.no (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id C402C74314 for ; Tue, 28 Aug 2007 10:29:28 +0200 (CEST) Received: from gar.local (unknown [10.4.0.24]) by esparsett.troll.no (Postfix) with ESMTP id A502C742DA for ; Tue, 28 Aug 2007 10:29:28 +0200 (CEST) From: =?iso-8859-1?q?Andr=E9_P=F6nitz?= To: gdb@sourceware.org Subject: Re: Questions about gdb/mi support on the Mac Date: Tue, 28 Aug 2007 08:29:00 -0000 User-Agent: KMail/1.9.6 References: <46CF1A71.1020002@sun.com> In-Reply-To: <46CF1A71.1020002@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708281029.27514.apoenitz@trolltech.com> 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: 2007-08/txt/msg00224.txt.bz2 On Friday 24 August 2007 19:50:41 Gordon Prieur wrote: > Hi, > > What are the known differences between running gdb/mi on a Mac and > on Windows/Linux/Solaris? I'm debugging problems in netbeans C/C++ > support (via gdb) on the Mac and am seeing significant differences between > the Mac and other platforms. > > For instance, if I send -exec-step on the Mac, I get a *stopped with > reason="end-stepping-range" and thread-id. On all 3 other platforms we > run on I also get a frame parameter (which is what we use to move the PC > and stack annotations. > > Are there other known differences between the Mac and other platforms? > (I'm using gdb 6.3.5 on the Mac). One thing I am aware of is the gdb/Mac sometimes produces results that to not fit into the MI grammar. E.g. when listing locals it returns: 9^done,locals={{name="a"},{name="w"}} instead of: 9^done,locals=[{name="a"},{name="w"}] IIRC (haven't looked at it for a while) also the output for -break-insert is different. And (also IIRC) Mac gdb automatically creates MI variables when running -stack-list-locals. In case you need details (or want to be sure that I remember correctly ;-)) I can dig through my project history... Andre'