From c1b4afacf54d7f0226da7e62b45f0ec7ebeb744b Mon Sep 17 00:00:00 2001 From: Sam Steingold Date: Thu, 3 Feb 2011 14:59:17 -0500 Subject: [PATCH] * lisp/progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom): Do not error out when `func' is nil. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/gdb-mi.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5