This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Questions about gdb/mi support on the Mac
- From: André Pönitz <apoenitz at trolltech dot com>
- To: gdb at sourceware dot org
- Date: Tue, 28 Aug 2007 10:29:27 +0200
- Subject: Re: Questions about gdb/mi support on the Mac
- References: <46CF1A71.1020002@sun.com>
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'