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: Tue, 1 Jul 2008 16:07:20 +0200 Message-ID: <38b2ab8a0807010707u79067c60yf83d83824e90cb3b@mail.gmail.com> References: <4864aa47$0$7552$9b4e6d93@newsspool1.arcor-online.net> <18532.48739.801397.106683@kahikatea.snap.net.nz> <38b2ab8a0806300437kf9e9013oc296d5eb35c37e08@mail.gmail.com> <18537.23288.486975.94604@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 1214921320 10465 80.91.229.12 (1 Jul 2008 14:08:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2008 14:08:40 +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 Tue Jul 01 16:09:26 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 1KDgX6-00032V-Sw for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2008 16:08:37 +0200 Original-Received: from localhost ([127.0.0.1]:58682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDgWG-0006ZD-9H for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jul 2008 10:07:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDgVx-0006Y8-Cb for help-gnu-emacs@gnu.org; Tue, 01 Jul 2008 10:07:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDgVv-0006XS-D8 for help-gnu-emacs@gnu.org; Tue, 01 Jul 2008 10:07:24 -0400 Original-Received: from [199.232.76.173] (port=54898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDgVv-0006XL-7u for help-gnu-emacs@gnu.org; Tue, 01 Jul 2008 10:07:23 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.246]:65178) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDgVu-0000ic-Ou for help-gnu-emacs@gnu.org; Tue, 01 Jul 2008 10:07:23 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so3340653rvb.6 for ; Tue, 01 Jul 2008 07:07:20 -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=nD8baDkwx8yaPMgPpU7PVPrS2jrNbIauK84Bo9QFdiQ=; b=p0BHNS4Rcb6INNJMDpWXPLCHEcXSyGnsUzY8LEW+DOaZQQqMZWR9MT3wGcrZhLqGLy 1gyieat9c+9kOtb9spNZqdiK6qj0+kzy2qhxVDIZTm8MiDZJCP+/LTYnkJjyE2dKkTwT JaGjMpB8vOv4Lz8y7AN3dVyf7h0NwRMw5hdpc= 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=Jl1WFfdfxqafBGMj3szzBHDcfg/7uKiDIpNOI7aGFKa+NOhRaTTzDgFZYalORnHJMe CNronLJYdO18UN1zozSQB8w8BR6ZINFI3ijg9edf8piJCSumahKzME05eGQjmXRU1Cgt PK9McDo8eHscG+B6lqyPboMzaWRvgfs/C+qVQ= Original-Received: by 10.141.176.4 with SMTP id d4mr3546154rvp.14.1214921240271; Tue, 01 Jul 2008 07:07:20 -0700 (PDT) Original-Received: by 10.141.70.3 with HTTP; Tue, 1 Jul 2008 07:07:20 -0700 (PDT) In-Reply-To: <18537.23288.486975.94604@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:55175 Archived-At: Hello, On Tue, Jul 1, 2008 at 12:15 AM, Nick Roberts wrote: > > 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)) > > > That shows to me that execution has already begun and is in the function > _stext, so "run" wouldn't be an appropriate command to send anyway. Well actually I lied, I don't do 'run' but 'continue' but I've never figured out why... > It normally starts (ends) like this: > > ... > (recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n") > (recv . "\n^Z^Zpost-prompt\n") > (send-item "set width 0\n" ignore) > (recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n") > (recv . "\n^Z^Zpost-prompt\n") > (send-item "set height 0\n" ignore) > (recv . "\n^Z^Zpre-prompt\n(gdb) \n^Z^Zprompt\n") > (recv . "\n^Z^Zpost-prompt\n&\"\\n^Z^Zerror-begin\\n\"\n&\"No registers.\\n\"\n~\"\\n\"\n~\"^Z^Zerror\\n\"\n^error,msg=\"No registers.\"\n(gdb) \n") > (send-item "server interpreter mi -stack-info-frame\n" gdb-get-version)) > > I understand why Emacs stops sending GDB commands after -stack-info-frame in > your case. Note that I can't issue any command when emacs is in this state. They just get stuck. > What are the values of the variables > > gdb-input-queue > gdb-pending triggers > gdb-ready > gud-runnning > > at this point? > gdb-input-queue is a variable defined in `gdb-ui.el'. Its value is (("server info source\n" gdb-source-info) ("server list\n" ignore) ("server interpreter mi \"-file-list-exec-source-files\"\n" gdb-set-gud-minor-mode-existing-buffers-1) ("server interpreter mi -data-list-register-names\n" gdb-get-register-names) ("set width 0\n" ignore) ("set height 0\n" ignore)) gdb-pending-triggers is a variable defined in `gdb-ui.el'. Its value is nil gdb-ready is a variable defined in `gud.el'. Its value is nil gud-running is a variable defined in `gud.el'. Its value is nil > Isn't the kernel debugged through a remote stub in a patched gdb (kgdb)? Yes probably, I'm using a gdb patched by a third party but don't know and can't figure out what has been patched... > > Also there was a thread "kgdb in emacs" in help-gnu-emacs back in April of this > year. > > If you make prgress with this problem please post a description to the list (or > emacs-devel) so I can add it to the documentation. No problem. Which documentation are you talking about BTW ? But I can add 2 more info about this issue: First, starting gdb from a shell works fine. Second point is emacs 21 used to work. Thanks -- Francis