From: Sam Steingold Date: Thu, 3 Feb 2011 19:59:17 +0000 (-0500) Subject: * lisp/progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom): X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~1049 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1b4afacf54d7f0226da7e62b45f0ec7ebeb744b;p=emacs.git * lisp/progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom): Do not error out when `func' is nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 12c2603e35f..794faaa0ec8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-02-03 Sam Steingold + + * progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom): + Do not error out when `func' is nil. + 2011-02-03 Michael Albinus * net/tramp-sh.el (tramp-remote-path): Add default settings for diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index ce7de946b5e..bbe9722f548 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -2347,7 +2347,8 @@ HANDLER-NAME handler uses customization of CUSTOM-DEFUN. See (bindat-get-field breakpoint 'what) (or pending at (concat "in " - (propertize func 'font-lock-face font-lock-function-name-face) + (propertize (or func "unknown") + 'font-lock-face font-lock-function-name-face) (gdb-frame-location breakpoint))))) ;; Add clickable properties only for breakpoints with file:line ;; information