From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: Emacs doesn't show source file when debugging with GDB Date: Fri, 16 May 2008 11:22:00 +0200 Message-ID: <38b2ab8a0805160222q3ecab130h42de13edf6d7a63a@mail.gmail.com> References: <38b2ab8a0805150258l6c897a1ewd608926f73db2b0f@mail.gmail.com> <18476.7066.285885.346581@kahikatea.snap.net.nz> <38b2ab8a0805150500k109e82ebsc336ef0505e6ab88@mail.gmail.com> <18476.51049.725175.547769@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210929774 27052 80.91.229.12 (16 May 2008 09:22:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 09:22:54 +0000 (UTC) Cc: gnu-emacs-help@gnu.org To: "Nick Roberts" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 16 11:23:30 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jww9x-0007fe-3Z for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 11:23:29 +0200 Original-Received: from localhost ([127.0.0.1]:37528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jww9D-0007gK-Ab for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 05:22:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jww8i-0007ev-1c for help-gnu-emacs@gnu.org; Fri, 16 May 2008 05:22:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jww8c-0007Zg-Ai for help-gnu-emacs@gnu.org; Fri, 16 May 2008 05:22:10 -0400 Original-Received: from [199.232.76.173] (port=38747 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jww8c-0007ZZ-10 for help-gnu-emacs@gnu.org; Fri, 16 May 2008 05:22:06 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35973) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jww8b-0005Sy-ML for help-gnu-emacs@gnu.org; Fri, 16 May 2008 05:22:05 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:38434 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jww7X-0000jb-Pe for gnu-emacs-help@gnu.org; Fri, 16 May 2008 05:20:59 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jww8X-0005RJ-R0 for gnu-emacs-help@gnu.org; Fri, 16 May 2008 05:22:04 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.249]:36113) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jww8X-0005Qn-7G for gnu-emacs-help@gnu.org; Fri, 16 May 2008 05:22:01 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so101944rvb.6 for ; Fri, 16 May 2008 02:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nllgWgv23QzaCgwhehPo8KapQ/OAMwto3yiWSQ29iYg=; b=K/6ixvNDlAdZcA13N2CUqGs2wKuW/uKjOPg5q6Zuq6StIp0uol+3oHCJ+EniWkCcyxblF9bJdZgHxW8Ucrk0od6wixUvh0/yW+K/ftuMoIAb495jq+B7OZ7shmtEAru7AaF5w/0kgwo84LmSY9PNQ7TFwVsxb3oQGJFnpbo5vgY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F8aP0p54e8b0VAfD6HRGFXorbTGWRG4+oSSG8BtQc0fdkCGgkQObRqTRTuL7x6Bo6PSYBu8759KCGjLoxPW7vcvgoiLw8UU7EvdGkvVU7UW+2vHw7WFRsEVZb7nRiTnLdsjzd1IDIyXsFzCrb9/dUhNs/t1C3lxePJP7BmA3lDw= Original-Received: by 10.141.86.14 with SMTP id o14mr1649598rvl.278.1210929720091; Fri, 16 May 2008 02:22:00 -0700 (PDT) Original-Received: by 10.140.147.1 with HTTP; Fri, 16 May 2008 02:22:00 -0700 (PDT) In-Reply-To: <18476.51049.725175.547769@kahikatea.snap.net.nz> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54040 Archived-At: On Fri, May 16, 2008 at 1:29 AM, Nick Roberts 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