emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: gdb-ui and Mac OS X


From: Stefan Monnier
Subject: Re: gdb-ui and Mac OS X
Date: 26 Mar 2004 11:27:56 -0500
User-agent: 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
  
  frames-invalid
  DISPLAY = :0.0
  TERM = dumb
  Breakpoint 1 at 0x9009ec18
  Breakpoint 2 at 0xc279c: file xterm.c, line 7781.
  (gdb) 

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)
  gdb-pre-prompt("")
  gud-gdba-marker-filter("\npre-prompt\n(gdb) \nprompt\n")
  apply(gud-gdba-marker-filter "\npre-prompt\n(gdb) \nprompt\n")
  gud-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.


        Stefan


>>>>> "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 
>> 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
> annotation:

> b main

> ^Z^Zpost-prompt

> ^Z^Zbreakpoints-invalid
> Breakpoint 1 at 0x804843f: file myprog.c, line 38.

> ^Z^Zpre-prompt
> (gdb) 
> ^Z^Zprompt

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


> Nick


> _______________________________________________
> Emacs-pretest-bug mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/emacs-pretest-bug




reply via email to

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