GNU bug report logs - #4714
23.1.50; wrong-type-argument stringp nil in gdb

Previous Next

Package: emacs;

Reported by: Robert Marshall <robert.marshall <at> tnei.co.uk>

Date: Tue, 13 Oct 2009 12:55:06 UTC

Severity: normal

Fixed in version 24.1

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 4714 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Robert Marshall <robert.marshall <at> tnei.co.uk>
Cc: 4714 <at> debbugs.gnu.org
Subject: Re: 23.1.50; wrong-type-argument stringp nil in gdb
Date: Mon, 26 Dec 2011 16:17:20 +0800
> 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'.




This bug report was last modified 13 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.