From c534076ccd2f07aaeb8e22e1c825f40bbefd9e82 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Tue, 1 Aug 2006 02:49:47 +0000 Subject: [PATCH] (gdb-set-hollow): Check for gud-last-last-frame. --- lisp/progmodes/gdb-ui.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2