changeset 71409:f723aa5cf2de

(gdb-exited): Ensure overlay arrow gets killed. (gdb-frame-handler): Generalise frame regexp for templates.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 20 Jun 2006 22:35:19 +0000
parents a335bdf2a541
children 810a637b1397
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Tue Jun 20 22:34:45 2006 +0000
+++ b/lisp/progmodes/gdb-ui.el	Tue Jun 20 22:35:19 2006 +0000
@@ -1325,6 +1325,7 @@
   (setq gdb-active-process nil)
   (setq gud-overlay-arrow-position nil)
   (setq gdb-overlay-arrow-position nil)
+  (setq gud-old-arrow nil)
   (setq gdb-inferior-status "exited")
   (gdb-force-mode-line-update gdb-inferior-status)
   (gdb-stopping ignored))
@@ -3217,8 +3218,8 @@
     (setq gdb-frame-number (match-string 1))
     (setq gdb-frame-address (match-string 2)))
   (goto-char (point-min))
-  (when (re-search-forward ".*=\\s-+0x0*\\(\\S-*\\)\\s-+in\\s-+\\(\\S-+?\\)\
-\\(?: (\\(\\S-+?\\):[0-9]+?)\\)*;? "
+  (when (re-search-forward ".*=\\s-+0x0*\\(\\S-*\\)\\s-+in\\s-+\\(.*?\\)\
+\\(?: (\\(\\S-+?\\):[0-9]+?)\\)*; "
      nil t)
     (setq gdb-selected-frame (match-string 2))
     (if (gdb-get-buffer 'gdb-locals-buffer)