help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs doesn't show source file when debugging with GDB


From: Francis Moreau
Subject: Re: Emacs doesn't show source file when debugging with GDB
Date: Fri, 16 May 2008 11:22:00 +0200

On Fri, May 16, 2008 at 1:29 AM, Nick Roberts <address@hidden> wrote:
>  > nope. It's a custom line that call a script which in turn initialize some
>  > devices before launching gdb. But --annotate option is missing anyways.
>  >
>  > After I added it, I now have this in emacs when it tries to show the source
>  > code:
>  >
>  > error in process filter: Phase error in gdb-pre-prompt (got pre-emacs)
>  >
>  > Do you know what's wrong now ?
>
> I can only guess as you don't say which version you are using

Sorry, here it is:

In GNU Emacs 22.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.12.1)
 of 2007-11-06 on xenbuilder4.fedora.phx.redhat.com
configured using `configure  '--build=i386-redhat-linux-gnu'
'--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=\
/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-pop' '--with-sound' \
'--with-gtk' 'build_alias=i386-redhat-linux-gnu'
'host_alias=i386-redhat-linux-gnu'
'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF
-DSYSTEM_PURESIZE_EXTRA=16777216 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions --p\
aram=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables''

> or what your script does.

it just ends up to call gdb with a couple of parameters:

gdb --nowindows --annotate=3 -x my_gdbinit a.out

>  ISTR that in Gdb didn't work in Emacs 22.1 if there was a Gdb
> command that started execution in the .gdbinit file (or I guess with the -x
> option).  This was fixed in Emacs 22.2
>

Interesting because I have another problem: the -x switch seems to be ignored
when I start gdb from emacs whereas it's not if gdb is started from a shell.

> Before what? i.e. with which version of Emacs?

Before upgrading my distrib. I was using Fedora 6 and has moved to Fedora 8.

I don't recall my previous version of Emacs I was using.

> How did it work?  In graphical
> mode with breakpoint icons, stack, locals buffers etc or just text mode
> with the GUD buffer?

The latter...

Thanks
-- 
Francis




reply via email to

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