Re: Questions about gdb/mi support on the Mac

André Pönitz
2007-08-28T08:29:43Z

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'