From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: gud.el bug + patch Date: Wed, 22 Mar 2006 20:54:52 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143190916 21125 80.91.229.2 (24 Mar 2006 09:01:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Mar 2006 09:01:56 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 24 10:01:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FMiB7-0004tY-9M for ged-emacs-devel@m.gmane.org; Fri, 24 Mar 2006 10:01:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FMiB7-0002jy-4k for ged-emacs-devel@m.gmane.org; Fri, 24 Mar 2006 04:01:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FMHqa-0006ZC-Kj for emacs-devel@gnu.org; Wed, 22 Mar 2006 23:54:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FMHqY-0006Z0-Ip for emacs-devel@gnu.org; Wed, 22 Mar 2006 23:54:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FMHqY-0006Yx-DF for emacs-devel@gnu.org; Wed, 22 Mar 2006 23:54:54 -0500 Original-Received: from [128.32.35.215] (helo=roar.quarl.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FMHr4-0006uT-Ek for emacs-devel@gnu.org; Wed, 22 Mar 2006 23:55:26 -0500 Original-Received: by roar.quarl.org (Postfix, from userid 18378) id 34D115C536; Wed, 22 Mar 2006 20:54:52 -0800 (PST) Original-To: Emacs Developement List X-Quack-Archive: 1 X-Payment: hashcash 1.2 1:20:060323:emacs-devel@gnu.org::kU/LLS070jQ9PKCp:0000000000000000000000000000000000000000001XlV X-Hashcash: 1:20:060323:emacs-devel@gnu.org::kU/LLS070jQ9PKCp:0000000000000000000000000000000000000000001XlV X-Mailman-Approved-At: Fri, 24 Mar 2006 04:01:27 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52026 Archived-At: I'm using Emacs HEAD 2006-03-15 and gdb 6.4. When I run M-x gdb, I get Debugger entered--Lisp error: (wrong-type-argument stringp nil) get-buffer-window(nil) gdb-display-source-buffer(#) gud-display-line("/home/quarl/proj/debfsv/analyzer/smbase/breaker.cpp" 16) gud-display-frame() I believe this is a bug in `gud-gdb-marker-filter', where `gud-last-frame' gets set to ("source /path/file.cc" . 19) I think this should be ("/path/file.cc" . 42). `gdb --annotate=3' gives output such as: ^Z^Zsource /path/file.cc:19:512:beg:0x80f0031 This patch to `gud-gdb-marker-regexp' fixes the problem. --- gud.el 16 Mar 2006 14:56:18 -0800 1.100 +++ gud.el 22 Mar 2006 20:48:03 -0800 @@ -558,7 +558,7 @@ ;; This used to use path-separator instead of ":"; ;; however, we found that on both Windows 32 and MSDOS ;; a colon is correct here. - (concat "\032\032\\(.:?[^" ":" "\n]*\\)" ":" + (concat "\032\032\\(?:source \\)?\\(.:?[^" ":" "\n]*\\)" ":" "\\([0-9]*\\)" ":" ".*\n")) ;; There's no guarantee that Emacs will hand the filter the entire -- Karl 2006-03-22 20:42