# HG changeset patch # User Nick Roberts # Date 1260783883 0 # Node ID 2125c0e456593f07a99f15b19ef766f4727847b5 # Parent 80607ca6d8f0fd619e55706d536f7ee565b2564b (gdb-frame-handler): Only set gud-lat-frame when there are values for both file and line. (Bug#5060) diff -r 80607ca6d8f0 -r 2125c0e45659 lisp/progmodes/gdb-mi.el --- a/lisp/progmodes/gdb-mi.el Mon Dec 14 09:44:13 2009 +0000 +++ b/lisp/progmodes/gdb-mi.el Mon Dec 14 09:44:43 2009 +0000 @@ -3754,9 +3754,8 @@ (setq gdb-frame-number (bindat-get-field frame 'level)) (setq gdb-frame-address (bindat-get-field frame 'addr)) (let ((line (bindat-get-field frame 'line))) - (setq gdb-selected-line (or (and line (string-to-number line)) - nil)) ; don't fail if line is nil - (when line ; obey the current file only if we have line info + (setq gdb-selected-line (and line (string-to-number line))) + (when (and gdb-selected-file gdb-selected-line) (setq gud-last-frame (cons gdb-selected-file gdb-selected-line)) (gud-display-frame))) (if gud-overlay-arrow-position