From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Question on debugging emacs with gdb Date: Mon, 28 Feb 2005 14:32:08 +1300 Message-ID: <16930.29848.619072.691066@farnswood.snap.net.nz> References: <01c51d1b$Blat.v2.4$f56b4e60@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109556570 8087 80.91.229.2 (28 Feb 2005 02:09:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2005 02:09:30 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 28 03:09:29 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5aLa-0003w4-NS for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2005 03:09:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5adq-0003Tb-Tn for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2005 21:28:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D5adF-00038m-E6 for emacs-devel@gnu.org; Sun, 27 Feb 2005 21:27:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D5adD-00037j-9n for emacs-devel@gnu.org; Sun, 27 Feb 2005 21:27:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5aYN-0001tv-05 for emacs-devel@gnu.org; Sun, 27 Feb 2005 21:22:35 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D5Zvl-00017w-L3; Sun, 27 Feb 2005 20:42:42 -0500 Original-Received: from farnswood.snap.net.nz (p72-tnt1.snap.net.nz [202.124.110.72]) by viper.snap.net.nz (Postfix) with ESMTP id 1C324437E76; Mon, 28 Feb 2005 14:42:40 +1300 (NZDT) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 24D3062FBE; Mon, 28 Feb 2005 01:32:09 +0000 (GMT) Original-To: Joakim Verona In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33904 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33904 > > Start GDB from the Emacs's src directory. There's a .gdbinit file > > there that takes care of this problem. (The etc/DEBUG file actually > > tells you that as its first advice.) > > > As far as I can determine, my gdb instance is running with this > .gdbinit. > > Heres gdb:s startup message: > > GNU gdb Red Hat Linux (6.0post-0.20040223.19rh) > Copyright 2004 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 "i386-redhat-linux-gnu". > .gdbinit:22: Error in sourced command file: ^^^^^^^^^^^^^^^^^^ > No symbol table is loaded. Use the "file" command. ^^^^^^^^^^^^^^^^^^^^^^^^^ Start GDB with 'gdb emacs' not just 'gdb'. Then there should be no error, GDB will read the rest of .gdbinit and C-g will be handled properly. Nick > Then I do: > > attach PID > > all from different screen windows in a screen session running under ssh.