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: Fri, 16 May 2008 11:29:45 +1200 Message-ID: <18476.51049.725175.547769@kahikatea.snap.net.nz> References: <38b2ab8a0805150258l6c897a1ewd608926f73db2b0f@mail.gmail.com> <18476.7066.285885.346581@kahikatea.snap.net.nz> <38b2ab8a0805150500k109e82ebsc336ef0505e6ab88@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 1210894235 5593 80.91.229.12 (15 May 2008 23:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2008 23:30:35 +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 Fri May 16 01:31:10 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 1Jwmui-0005Mf-Ve for geh-help-gnu-emacs@m.gmane.org; Fri, 16 May 2008 01:31:09 +0200 Original-Received: from localhost ([127.0.0.1]:43646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwmtz-0002wS-6A for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2008 19:30:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwmth-0002wH-9x for help-gnu-emacs@gnu.org; Thu, 15 May 2008 19:30:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwmtf-0002vz-QY for help-gnu-emacs@gnu.org; Thu, 15 May 2008 19:30:05 -0400 Original-Received: from [199.232.76.173] (port=37309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwmtf-0002vv-LB for help-gnu-emacs@gnu.org; Thu, 15 May 2008 19:30:03 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52386) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jwmtf-0003Sk-En for help-gnu-emacs@gnu.org; Thu, 15 May 2008 19:30:03 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:56726) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jwmsc-0001K8-OS for gnu-emacs-help@gnu.org; Thu, 15 May 2008 19:28:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JwmtZ-0003RW-5W for gnu-emacs-help@gnu.org; Thu, 15 May 2008 19:30:02 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:42648) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwmtY-0003R5-K9 for gnu-emacs-help@gnu.org; Thu, 15 May 2008 19:29:56 -0400 Original-Received: from kahikatea.snap.net.nz (142.63.255.123.dynamic.snap.net.nz [123.255.63.142]) by viper.snap.net.nz (Postfix) with ESMTP id E02C93DA9AC; Fri, 16 May 2008 11:29:53 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id C27298FC6D; Fri, 16 May 2008 11:29:46 +1200 (NZST) In-Reply-To: <38b2ab8a0805150500k109e82ebsc336ef0505e6ab88@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:54028 Archived-At: > 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 or what your script does. 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 > > If you remove the --annotate=3 option, Emacs will behave as you describe. > > Well it worked before though. Before what? i.e. with which version of Emacs? How did it work? In graphical mode with breakpoint icons, stack, locals buffers etc or just text mode with the GUD buffer? -- Nick http://www.inet.net.nz/~nickrob