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, 7 Jul 2008 09:59:09 +0200 Message-ID: <38b2ab8a0807070059n7950c46j7e2a33a07fcb1533@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> <38b2ab8a0807010707u79067c60yf83d83824e90cb3b@mail.gmail.com> <18538.45748.747143.611329@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 1215417589 16903 80.91.229.12 (7 Jul 2008 07:59:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2008 07:59:49 +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 Jul 07 10:00:35 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 1KFleE-0007v9-Qj for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jul 2008 10:00:35 +0200 Original-Received: from localhost ([127.0.0.1]:54878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFldN-00022P-Lx for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jul 2008 03:59:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFld3-0001yH-Lg for help-gnu-emacs@gnu.org; Mon, 07 Jul 2008 03:59:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFld1-0001uP-Du for help-gnu-emacs@gnu.org; Mon, 07 Jul 2008 03:59:20 -0400 Original-Received: from [199.232.76.173] (port=58693 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFld1-0001u9-8E for help-gnu-emacs@gnu.org; Mon, 07 Jul 2008 03:59:19 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:3447) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KFld0-00068C-MV for help-gnu-emacs@gnu.org; Mon, 07 Jul 2008 03:59:18 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.245]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFlcx-0007QG-JF for help-gnu-emacs@gnu.org; Mon, 07 Jul 2008 03:59:15 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so2593332rvb.6 for ; Mon, 07 Jul 2008 00:59:10 -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=JV26qLfTenaBm+n1qnIezCBtLCKS84MHT2va6PkobFc=; b=EnO8sliA1qVQUNjsc9mX/ND6XDAZ8YHHryRkUQqo0+zD1hCnZ3s8NsONcOMJp6FnDh kj8a7PC/Ob2pGyOYi0Sye0fljq2Zci1ZOQCPOwKr9IGCWF4ZeFHAAyRp/rth8gv9uyv5 hhQsX03Odx4LYnocTDRiEIHMLA6oyJVfv2PPw= 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=C8hJOjcwCOVl3Df0WS+uRi31o9H8gZDi+Lcne5QyL/cfehdPxyBvxu/jc72F3vUa6f LyBpI7rfkDh+KHVFloXvWDzqJxixe51VGwNoeKJGYZTxuMsqsiU7DYg9+GjWf/ZeIL8c FtAKDKAUwQ1LBwX8uUAcLv1Ne8viPG0YaQoHc= Original-Received: by 10.140.133.10 with SMTP id g10mr2068996rvd.151.1215417549855; Mon, 07 Jul 2008 00:59:09 -0700 (PDT) Original-Received: by 10.141.70.3 with HTTP; Mon, 7 Jul 2008 00:59:09 -0700 (PDT) In-Reply-To: <18538.45748.747143.611329@kahikatea.snap.net.nz> Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) 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:55280 Archived-At: Hello [ sorry for the delayed reply ] On Wed, Jul 2, 2008 at 12:41 AM, Nick Roberts wrote: > > > 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 > > Sorry, I mean I don't understand > ^^^^^ > any debug mode we could use ? > > ... > > 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)) > > This should be 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... > > Then the patch may change behaviour in other ways. I suspect that it's not > issuing some of the prompt annotations. A distributed patched gdb is covered > by GPL so presumably you have access to the source code. What version of > gdb is itbased on? and who are the third party? > GNU gdb STMicroelectronics/Linux Base 6.5-24 [build Oct 24 2007] coming from http://www.stlinux.com/download/ > > > But I can add 2 more info about this issue: > > > > First, starting gdb from a shell works fine. > > I still don't know how you are using gdb. Presumably it's not running on the > same machine as the kernel that you are debugging. How do you start > gdb/connect to the kernel from a shell? > Sorry, gdb is connecting to a probe. I suppose gdb has been patched to do that. I can show you what gdb prompt in a shell if you want. > > > Second point is emacs 21 used to work. > > It's a different mode. With M-x gdb, if you use "gdb --fullname" instead of > "gdb --annotate=3" with Emacs 22.x it should work as before. With Emacs 23, > i.e. Emacs in CVS, you have to use M-x gud-gdb hmm: sh4-linux-gdb: unrecognized option '--fullname' thanks -- Francis