diff options
| author | Karl Heuer | 1995-05-27 00:36:36 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-27 00:36:36 +0000 |
| commit | dfb7d19560644a039e2f4d302782977f5e6c6b89 (patch) | |
| tree | 5153b06685fce9cd199bb489611e4aa90fedfd10 | |
| parent | 792e773aaa592a7f35135ce6d6c9f4fd931b5e2e (diff) | |
| download | emacs-dfb7d19560644a039e2f4d302782977f5e6c6b89.tar.gz emacs-dfb7d19560644a039e2f4d302782977f5e6c6b89.zip | |
(gud-gdb-marker-regexp): New var. Use path-separator.
| -rw-r--r-- | lisp/gud.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index 75f56b90d45..a12c84c5fda 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -170,6 +170,10 @@ we're in the GUD buffer)." | |||
| 170 | (defun gud-gdb-massage-args (file args) | 170 | (defun gud-gdb-massage-args (file args) |
| 171 | (cons "-fullname" args)) | 171 | (cons "-fullname" args)) |
| 172 | 172 | ||
| 173 | (defvar gud-gdb-marker-regexp | ||
| 174 | (concat "\032\032\\([^" path-separator "\n]*\\)" path-separator | ||
| 175 | "\\([0-9]*\\)" path-separator ".*\n")) | ||
| 176 | |||
| 173 | ;; There's no guarantee that Emacs will hand the filter the entire | 177 | ;; There's no guarantee that Emacs will hand the filter the entire |
| 174 | ;; marker at once; it could be broken up across several strings. We | 178 | ;; marker at once; it could be broken up across several strings. We |
| 175 | ;; might even receive a big chunk with several markers in it. If we | 179 | ;; might even receive a big chunk with several markers in it. If we |
| @@ -184,8 +188,7 @@ we're in the GUD buffer)." | |||
| 184 | (let ((output "")) | 188 | (let ((output "")) |
| 185 | 189 | ||
| 186 | ;; Process all the complete markers in this chunk. | 190 | ;; Process all the complete markers in this chunk. |
| 187 | (while (string-match "\032\032\\([^:\n]*\\):\\([0-9]*\\):.*\n" | 191 | (while (string-match gud-gdb-marker-regexp gud-marker-acc) |
| 188 | gud-marker-acc) | ||
| 189 | (setq | 192 | (setq |
| 190 | 193 | ||
| 191 | ;; Extract the frame position from the marker. | 194 | ;; Extract the frame position from the marker. |