[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb-ui and Mac OS X
Re: gdb-ui and Mac OS X
26 Mar 2004 11:27:56 -0500
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
I've tried gdb-ui on Mac OS X recently and indeed got into problems.
Here is what I did:
M-x gdb RET
At prompt: gdb --annotate=3 emacs RET
Here is what I got in the *gdb* buffer:
Current directory is ~/src/emacs/trunk/src/
GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec 4 15:41:30 GMT 2003)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries ............... done
DISPLAY = :0.0
TERM = dumb
Breakpoint 1 at 0x9009ec18
Breakpoint 2 at 0xc279c: file xterm.c, line 7781.
It looks like the `frames-invalid' was not filtered.
It also opened a window showing me the top of src/emacs.c.
And it signalled an error:
error("Phase error in gdb-pre-prompt (got %s)" pre-emacs)
apply(gud-gdba-marker-filter "\npre-prompt\n(gdb) \nprompt\n")
gud-filter(#<process gud-emacs> "\npre-prompt\n(gdb) \nprompt\n")
e sink RET tells me that the value of `sink' is `pre-emacs'.
This was with a fresh build of Emacs-CVS.
>>>>> "Nick" == Nick Roberts <address@hidden> writes:
>> Here is what I'm seeing when I do "gdb -ann=3 a.out":
>> GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec 4 15:41:30 GMT
> Watch expressions only work for GDB 6.0 onwards, so you might try updating.
> Emacs normally tells you this but, in this case, the mode failing before then.
>> Copyright 2003 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and
>> you are
>> welcome to change it and/or distribute copies of it under certain
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB. Type "show warranty" for
>> This GDB was configured as "powerpc-apple-darwin".
>> Reading symbols for shared libraries .. done
> All the annotations appear to be present. You could check for the post-prompt
> b main
> Breakpoint 1 at 0x804843f: file myprog.c, line 38.
> I think that they must be present, though. It's hard to know what's wrong but
> here are a few ideas:
> Perhaps other Mac OS X users could e-mail this list to say whether they
> experience the same problem or not.
> A .gdbinit file in your executable's or home directory may be affecting things
> (try gdb -nx).
> Try "gdb -noasync -ann=3 a.out". I think I've seen the output order get
> with "-aysnc" (the default). Watch expressions don't to work with this
> option, though, as they use GDB's new interface GDB/MI.
> I have recently created a file called gdbmi.el that uses this new interface
> which GDB developers intend to replace annotations. You can download it from
> http://nick.uklinux.net. It needs the CVS version of gdb which should be
> released as GDB 6.1 around the end of March. GDB/MI should be more robust than
> annotations so I would be interested to know if you can get this file to work
> on Mac OS X.
> Emacs-pretest-bug mailing list