From: Nick Roberts Date: Tue, 1 Aug 2006 02:49:47 +0000 (+0000) Subject: (gdb-set-hollow): Check for gud-last-last-frame. X-Git-Tag: emacs-pretest-22.0.90~1154 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c534076ccd2f07aaeb8e22e1c825f40bbefd9e82;p=emacs.git (gdb-set-hollow): Check for gud-last-last-frame. --- diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index ce50c81e92d..595ec545eef 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -2049,9 +2049,10 @@ static char *magick[] = { (setq gdb-look-up-stack nil)) (defun gdb-set-hollow () - (with-current-buffer (gud-find-file (car gud-last-last-frame)) - (setq fringe-indicator-alist - '((overlay-arrow . hollow-right-triangle))))) + (if gud-last-last-frame + (with-current-buffer (gud-find-file (car gud-last-last-frame)) + (setq fringe-indicator-alist + '((overlay-arrow . hollow-right-triangle)))))) (defun gdb-stack-buffer-name () (with-current-buffer gud-comint-buffer