From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#4714: 23.1.50; wrong-type-argument stringp nil in gdb Date: Mon, 26 Dec 2011 16:17:20 +0800 Message-ID: <87hb0nn3vz.fsf@gnu.org> References: <87fx9nzcf2.fsf@tnei.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1324887521 32584 80.91.229.12 (26 Dec 2011 08:18:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Dec 2011 08:18:41 +0000 (UTC) Cc: 4714@debbugs.gnu.org To: Robert Marshall Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 26 09:18:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5lT-0004e7-Ul for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2011 09:18:36 +0100 Original-Received: from localhost ([::1]:50796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rf5lS-0003qc-Nk for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2011 03:18:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rf5lP-0003qR-R5 for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2011 03:18:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rf5lO-0002ee-Ii for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2011 03:18:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rf5lO-0002eY-HH for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2011 03:18:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Rf5np-0003sV-Qy for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2011 03:21:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87fx9nzcf2.fsf@tnei.co.uk> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Dec 2011 08:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4714 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 4714-submit@debbugs.gnu.org id=B4714.132488760914832 (code B ref 4714); Mon, 26 Dec 2011 08:21:01 +0000 Original-Received: (at 4714) by debbugs.gnu.org; 26 Dec 2011 08:20:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5my-0003rB-BM for submit@debbugs.gnu.org; Mon, 26 Dec 2011 03:20:08 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rf5mv-0003r2-2W for 4714@debbugs.gnu.org; Mon, 26 Dec 2011 03:20:06 -0500 Original-Received: from [155.69.16.4] (port=38694 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rf5kS-0007IQ-0G; Mon, 26 Dec 2011 03:17:32 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 26 Dec 2011 03:21:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55200 Archived-At: > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("//+" nil) > gud-find-file(nil) > gud-display-line(nil 83) > gud-display-frame() > gdb-frame-handler() Sorry for the long delay in replying. I think this was a bug in the `gdb-source' function of gdb-ui.el, which should be fixed with the following patch. But gdb-ui.el has since been replaced with a different implementation, gdb-mi.el, in the trunk, which does not have this problem. *** lisp/progmodes/gdb-ui.el 2011-01-02 23:50:46 +0000 --- lisp/progmodes/gdb-ui.el 2011-12-26 08:15:50 +0000 *************** *** 1427,1442 **** ;; Do not use this except as an annotation handler. (defun gdb-source (args) ! (string-match gdb-source-spec-regexp args) ! ;; Extract the frame position from the marker. ! (setq gud-last-frame ! (cons ! (match-string 1 args) ! (string-to-number (match-string 2 args)))) ! (setq gdb-pc-address (match-string 3 args)) ! ;; cover for auto-display output which comes *before* ! ;; stopped annotation ! (if (eq gdb-output-sink 'inferior) (setq gdb-output-sink 'user))) (defun gdb-pre-prompt (ignored) "An annotation handler for `pre-prompt'. --- 1427,1442 ---- ;; Do not use this except as an annotation handler. (defun gdb-source (args) ! (when (string-match gdb-source-spec-regexp args) ! ;; Extract the frame position from the marker. ! (setq gud-last-frame ! (cons ! (match-string 1 args) ! (string-to-number (match-string 2 args)))) ! (setq gdb-pc-address (match-string 3 args)) ! ;; cover for auto-display output which comes *before* ! ;; stopped annotation ! (if (eq gdb-output-sink 'inferior) (setq gdb-output-sink 'user)))) (defun gdb-pre-prompt (ignored) "An annotation handler for `pre-prompt'.