From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: Emacs doesn't show source file when debugging with GDB Date: Thu, 15 May 2008 23:16:42 +1200 Message-ID: <18476.7066.285885.346581@kahikatea.snap.net.nz> References: <38b2ab8a0805150258l6c897a1ewd608926f73db2b0f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210850292 8635 80.91.229.12 (15 May 2008 11:18:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2008 11:18:12 +0000 (UTC) Cc: gnu-emacs-help@gnu.org To: "Francis Moreau" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 13:18:37 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 1JwbTN-0000oA-Eq for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2008 13:18:09 +0200 Original-Received: from localhost ([127.0.0.1]:49541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwbSe-0001MW-30 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2008 07:17:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwbSL-0001L0-OL for help-gnu-emacs@gnu.org; Thu, 15 May 2008 07:17:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwbSK-0001JP-2d for help-gnu-emacs@gnu.org; Thu, 15 May 2008 07:17:04 -0400 Original-Received: from [199.232.76.173] (port=33843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwbSJ-0001JJ-WB for help-gnu-emacs@gnu.org; Thu, 15 May 2008 07:17:04 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:56557) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwbSJ-0002ZO-MY for help-gnu-emacs@gnu.org; Thu, 15 May 2008 07:17:03 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:60160) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JwbRI-00084V-Tg for gnu-emacs-help@gnu.org; Thu, 15 May 2008 07:16:00 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JwbSE-0002Xa-Gi for gnu-emacs-help@gnu.org; Thu, 15 May 2008 07:17:02 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:39126) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwbSC-0002Vq-Pp for gnu-emacs-help@gnu.org; Thu, 15 May 2008 07:16:57 -0400 Original-Received: from kahikatea.snap.net.nz (230.63.255.123.dynamic.snap.net.nz [123.255.63.230]) by viper.snap.net.nz (Postfix) with ESMTP id 275533DA47A; Thu, 15 May 2008 23:16:49 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 0DE188FC6D; Thu, 15 May 2008 23:16:43 +1200 (NZST) In-Reply-To: <38b2ab8a0805150258l6c897a1ewd608926f73db2b0f@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:54006 Archived-At: > I'm using gdb inside emacs. What version of Emacs are you using? What configuration? (M-x report-emacs-bug will provide these details). > One nice feature, is that Emacs can show the source files for the program I'm > debugging with GDB. But after reinstalling a brand new distrib, Emacs doesn't > show the source files anymore. Emacs should still show the source. Which distribution did you use? Did you compile with -g? Are you sure that Gdb is stopping in a file that has debug information, i.e. not a system library? > Still gdb can, if I list the source but it's not really convenient. How do you run Gdb? Hopefully like this: Run gdb (like this): gdb --annotate=3 myprog If you remove the --annotate=3 option, Emacs will behave as you describe. -- Nick http://www.inet.net.nz/~nickrob