From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joakim Verona Newsgroups: gmane.emacs.devel Subject: Re: Question on debugging emacs with gdb Date: Sun, 27 Feb 2005 23:57:45 +0100 Message-ID: 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 X-Trace: sea.gmane.org 1109545352 13513 80.91.229.2 (27 Feb 2005 23:02:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Feb 2005 23:02:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 28 00:02:31 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5XQc-0003kp-VK for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2005 00:02:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5Xiq-0006jn-EQ for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2005 18:21:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D5Xh3-0005eq-O7 for emacs-devel@gnu.org; Sun, 27 Feb 2005 18:19:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D5Xgv-0005YE-Fz for emacs-devel@gnu.org; Sun, 27 Feb 2005 18:19:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5Xgu-0005W1-EH for emacs-devel@gnu.org; Sun, 27 Feb 2005 18:19:12 -0500 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D5XMW-0000VE-Gr; Sun, 27 Feb 2005 17:58:08 -0500 Original-Received: from naru.home ([83.227.131.3] [83.227.131.3]) by mxfep02.bredband.com with ESMTP id <20050227225804.UVKP17521.mxfep02.bredband.com@naru.home>; Sun, 27 Feb 2005 23:58:04 +0100 Original-To: Eli Zaretskii In-Reply-To: <01c51d1b$Blat.v2.4$f56b4e60@zahav.net.il> (Eli Zaretskii's message of "Mon, 28 Feb 2005 00:29:34 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) 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:33895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33895 "Eli Zaretskii" writes: > > 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. Then I do: attach PID all from different screen windows in a screen session running under ssh. > If this somehow doesn't DTRT, please post the details (your OS, > version of GDB, etc.). Ok, heres some stats: In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.4.14) of 2005-02-27 on naru.home configured using `configure '--with-gtk' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Message Minor modes in effect: mml-mode: t auto-compression-mode: t display-time-mode: t show-paren-mode: t erc-truncate-mode: t erc-log-mode: t erc-bbdb-mode: t erc-autoaway-mode: t erc-autojoin-mode: t erc-button-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-smiley-mode: t ecb-minor-mode: t which-function-mode: t encoded-kbd-mode: t menu-bar-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t [joakim@naru java]$ rpm -qi gdb Name : gdb Relocations: (not relocatable) Version : 6.0post Vendor: Red Hat, Inc. Release : 0.20040223.19 Build Date: Mon 03 May 2004 09:45:07 PM CEST Install Date: Sat 04 Dec 2004 12:57:51 AM CET Build Host: tweety.build.redhat.com Group : Development/Debuggers Source RPM: gdb-6.0post-0.20040223.19.src.rpm Size : 5182318 License: GPL Signature : DSA/SHA1, Fri 07 May 2004 03:18:22 AM CEST, Key ID b44269d04f2a6fd2 Packager : Red Hat, Inc. URL : http://sources.redhat.com/gdb/ Summary : A GNU source-level debugger for C, C++ and other languages. Description : GDB, the GNU debugger, allows you to debug programs written in C, C++, and other languages, by executing them in a controlled fashion and printing their data. -- Joakim Verona www.verona.se