]> git.eshelyaron.com Git - emacs.git/commitdiff
(gdb-info-breakpoints-custom)
authorNick Roberts <nickrob@snap.net.nz>
Fri, 28 Jan 2005 21:48:48 +0000 (21:48 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Fri, 28 Jan 2005 21:48:48 +0000 (21:48 +0000)
(gdb-goto-breakpoint): Make breakpoint handling work on template
functions in C++. Reported by Martin Reed <mjreed@essex.ac.uk>

lisp/progmodes/gdb-ui.el

index 1827589387e53c577df13bcafdcbf3c9e5a30cc9..a89f4b1694fbfcfa9d70dfbdeb9a2c7c03758e96 100644 (file)
@@ -1143,7 +1143,7 @@ static char *magick[] = {
                (setq bptno (match-string 1))
                (setq flag (char-after (match-beginning 2)))
                (beginning-of-line)
-               (if (re-search-forward "in\\s-+\\S-+\\s-+at\\s-+" nil t)
+               (if (re-search-forward "in.*at\\s-+" nil t)
                    (progn
                      (looking-at "\\(\\S-+\\):\\([0-9]+\\)")
                      (let ((line (match-string 2)) (buffer-read-only nil)
@@ -1298,7 +1298,7 @@ static char *magick[] = {
   (save-excursion
     (beginning-of-line 1)
     (if (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba))
-           (looking-at ".*in\\s-+\\S-+\\s-+at\\s-+\\(\\S-*\\):\\([0-9]+\\)")
+           (looking-at ".*in.*at\\s-+\\(\\S-*\\):\\([0-9]+\\)")
          (looking-at
      "[0-9]+\\s-*\\S-*\\s-*\\S-*\\s-*.\\s-*\\S-*\\s-*\\(\\S-*\\):\\([0-9]+\\)"))
        (let ((line (match-string 2))