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: gud : Phase error in gdb-pre-prompt (got pre-emacs) Date: Thu, 3 Jul 2008 19:35:46 +1200 Message-ID: <18540.33106.460721.233228@kahikatea.snap.net.nz> References: <4864aa47$0$7552$9b4e6d93@newsspool1.arcor-online.net> <4864f7c5$0$6607$9b4e6d93@newsspool2.arcor-online.net> <18533.31905.273260.594090@kahikatea.snap.net.nz> 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 1215070658 12766 80.91.229.12 (3 Jul 2008 07:37:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 07:37:38 +0000 (UTC) Cc: Markus Grunwald , help-gnu-emacs@gnu.org To: "hui wang" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 03 09:38:23 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 1KEJOX-0005RA-7A for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jul 2008 09:38:21 +0200 Original-Received: from localhost ([127.0.0.1]:57683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEJNg-0008V7-Gj for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jul 2008 03:37:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEJMP-0007ca-JM for help-gnu-emacs@gnu.org; Thu, 03 Jul 2008 03:36:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEJMO-0007bo-WE for help-gnu-emacs@gnu.org; Thu, 03 Jul 2008 03:36:09 -0400 Original-Received: from [199.232.76.173] (port=60033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEJMO-0007bQ-M9 for help-gnu-emacs@gnu.org; Thu, 03 Jul 2008 03:36:08 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:60530) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEJMO-0006C9-E3 for help-gnu-emacs@gnu.org; Thu, 03 Jul 2008 03:36:08 -0400 Original-Received: from kahikatea.snap.net.nz (212.30.255.123.static.snap.net.nz [123.255.30.212]) by viper.snap.net.nz (Postfix) with ESMTP id A7B063DA5E9; Thu, 3 Jul 2008 19:36:03 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id E33578FC6D; Thu, 3 Jul 2008 19:35:58 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:55211 Archived-At: > > Emacs just builds a list of filenames from GDB that were used to build the > > executable. If you specify the name later in the GUD buffer, it doesn't > > build > > that list. That makes it quicker but if there are relevant files in > > existing > > buffers or you visit them they won't be enabled for debugging, e.g., you > > won't > > be able to click in the fringe to set a breakpoint until execution has > > already > > stopped there. > > > How to disable emacs from "builds a list of filenames from GDB?" > I have the same problem, and You have given me similiar solution. But it > does not work. If it doesn't work then maybe it's a different problem. I suspect not though. What happens if you use Markus' approach below? It seems to work when I start gdb without binary and load it from gdb with (gdb) file binary.bin (gdb) run > So now, I prefer emacs not build it. Maybe there should be a flag for it. As I explained to Markus, I have created a flag, gdb-create-source-file-list, but you need to checkout Emacs from the CVS repository at Savannah to get it. Be aware, though, that it works like the patch that I posted to you last time. -- Nick http://www.inet.net.nz/~nickrob