From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: gud : Phase error in gdb-pre-prompt (got pre-emacs) Date: Mon, 30 Jun 2008 13:37:52 +0200 Message-ID: <38b2ab8a0806300437kf9e9013oc296d5eb35c37e08@mail.gmail.com> References: <4864aa47$0$7552$9b4e6d93@newsspool1.arcor-online.net> <18532.48739.801397.106683@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214825906 32460 80.91.229.12 (30 Jun 2008 11:38:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2008 11:38:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Nick Roberts" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 30 13:39:12 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 1KDHiv-00044e-7T for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2008 13:39:09 +0200 Original-Received: from localhost ([127.0.0.1]:46498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDHi4-00011W-Mj for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2008 07:38:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDHhl-000107-3f for help-gnu-emacs@gnu.org; Mon, 30 Jun 2008 07:37:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDHhi-0000xP-0v for help-gnu-emacs@gnu.org; Mon, 30 Jun 2008 07:37:55 -0400 Original-Received: from [199.232.76.173] (port=40548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDHhh-0000xJ-OG for help-gnu-emacs@gnu.org; Mon, 30 Jun 2008 07:37:53 -0400 Original-Received: from wr-out-0506.google.com ([64.233.184.225]:53494) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDHhh-0004Vz-7L for help-gnu-emacs@gnu.org; Mon, 30 Jun 2008 07:37:53 -0400 Original-Received: by wr-out-0506.google.com with SMTP id c30so955336wra.14 for ; Mon, 30 Jun 2008 04:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=xiO+aL1+PYtAHB6e2VmUXIfd1YkQL5oaIWvRdkdMgIM=; b=RH572vq//aJNt2oz3oJ3/HVyZTgM1RXlimyeLgWOVYAAPNRuuQYiJpz7M1B/9Ut5kb 7WXot502nFAhLonUGyf7X2JlVgmUjwkrrAmPWV0fmslXwhPZzHdv1O0CcL86ov9t5/4j mvCF9CdcAXWwOdetIVoIpbPZpZ/aXTqAy/e8A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ew3bdqbma03DNy4AlAlmoJgtpX7pWYXfjkoF2GuN7VOL7Of9zIuALCyG5x4kCIcStq nb0wOgAFZm8JpwgCF/bIukT0txdMdT47ygwheDSoVqRn0Sd4oJy9goN7HXx0fQPKQatL z+R50OS0Pfn0+3VOGP4hpydeeYdQSi0juDLu0= Original-Received: by 10.90.72.3 with SMTP id u3mr4870927aga.59.1214825872187; Mon, 30 Jun 2008 04:37:52 -0700 (PDT) Original-Received: by 10.90.98.3 with HTTP; Mon, 30 Jun 2008 04:37:52 -0700 (PDT) In-Reply-To: <18532.48739.801397.106683@kahikatea.snap.net.nz> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:55153 Archived-At: Hello, On Fri, Jun 27, 2008 at 12:18 PM, Nick Roberts wrote: > > I'm not lucky with my switch from emacs21 to GNU Emacs 22.2.1 > > (i686-pc-linux-gnu, GTK+ Version 2.8.20): first emacs still hangs on > > (next-buffer) (see earlier posting...), now gud is not working. > > > > What I did: > > > > >M-x gdb > > >gdb --annotate=3 binary.bin > > > > gdb loads the binary, I get the gdb prompt. Then: > > > > Current directory is somewhere. > > GNU gdb 6.6 > > Copyright (C) 2006 Free Software Foundation, Inc. [...] > > This GDB was configured as "i686-pc-linux-gnu"... Using host libthread_db > > library "/lib/tls/i686/cmov/libthread_db.so.1". > > (gdb) run > > C-c C-c C-c C-c C-c C-c > > > > C-c C-c > > C-c C-c C-c C-c > I have a similar behaviour except that once the file is loaded emacs says within the square brackets: [Initializing...] forever. I need to do 'run', C-c Cc, . After that emacs says [ready] If I simply do 'run', emacs only show [Initializing...] forever. > > There are several factors that might make this slow: > > 1) An executable that was created from a large number of files. That's probably is the case since I'm loading Linux kernel. > 2) Using stabs debug format. I don't > 3) Using an old PC. I don't > > If this is the problem I can post a patch that might speed things up but > just turning off gud-tooltip-mode might help. > turning off gud-tooltip-mode doesn't help. > If you still get an error after waiting for "ready": > > 1) Set gdb-enable-debug to t using M-x set-variable. > 2) Do M-x gdb and enter "run" in the GUD buffer to get the error. > 4) Post the value of gdb-debug-log (you can use `C-h v') to the list > (or just to me if it's large). Here it is: gdb-debug-log is a variable defined in `gdb-ui.el'. Its value is ((recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n") (recv . "\n^Z^Zpost-prompt\n^done,frame={level=\"0\",addr=\"0x84002000\",func=\"_stext\"}\n(gdb) \n") (send-item "server interpreter mi -stack-info-frame\n" gdb-get-version)) thanks, -- Francis