# HG changeset patch # User Nick Roberts # Date 1209631436 0 # Node ID e6565d8a842813d2d1b6aed979c8dab8796f8e9b # Parent 57088b813330793edeff1080039803932cfaf4d6 (gdb-info-breakpoints-custom): Don't throw error if no file is found. diff -r 57088b813330 -r e6565d8a8428 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Thu May 01 08:39:23 2008 +0000 +++ b/lisp/progmodes/gdb-ui.el Thu May 01 08:43:56 2008 +0000 @@ -1931,12 +1931,13 @@ (add-text-properties (match-beginning 1) (match-end 1) '(face font-lock-function-name-face))) - (if (re-search-forward ".*\\s-+\\(\\S-+\\):\\([0-9]+\\)$") + (if (re-search-forward + ".*\\s-+\\(\\S-+\\):\\([0-9]+\\)$" nil t) (let ((line (match-string 2)) (file (match-string 1))) (add-text-properties bl el - '(mouse-face highlight - help-echo "mouse-2, RET: visit breakpoint")) + '(mouse-face highlight + help-echo "mouse-2, RET: visit breakpoint")) (unless (file-exists-p file) (setq file (cdr (assoc bptno gdb-location-alist)))) (if (and file