[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb-ui and Mac OS X

From: Nick Roberts
Subject: Re: gdb-ui and Mac OS X
Date: Tue, 24 Feb 2004 19:06:00 +0000

 > 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 
 > 2003)

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 
 > 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
 > breakpoints-invalid
 > frames-invalid
 > pre-prompt
 > (gdb)
 > prompt

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 jumbled
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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]