diff options
| -rw-r--r-- | lisp/gud.el | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index e7a43647a7e..2d5ad2aaa6c 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -413,13 +413,13 @@ available with older versions of GDB." | |||
| 413 | (while | 413 | (while |
| 414 | (cond | 414 | (cond |
| 415 | ;; System V Release 3.2 uses this format | 415 | ;; System V Release 3.2 uses this format |
| 416 | ((string-match "\\(^0x\\w* in \\|^\\|\n\\)\\([^:\n]*\\):\\([0-9]*\\):.*\n" | 416 | ((string-match "\\(^\\|\n\\)\\*?\\(0x\\w* in \\)?\\([^:\n]*\\):\\([0-9]*\\):.*\n" |
| 417 | gud-marker-acc start) | 417 | gud-marker-acc start) |
| 418 | (setq gud-last-frame | 418 | (setq gud-last-frame |
| 419 | (cons | 419 | (cons |
| 420 | (substring gud-marker-acc (match-beginning 2) (match-end 2)) | 420 | (substring gud-marker-acc (match-beginning 3) (match-end 3)) |
| 421 | (string-to-int | 421 | (string-to-int |
| 422 | (substring gud-marker-acc (match-beginning 3) (match-end 3)))))) | 422 | (substring gud-marker-acc (match-beginning 4) (match-end 4)))))) |
| 423 | ;; System V Release 4.0 quite often clumps two lines together | 423 | ;; System V Release 4.0 quite often clumps two lines together |
| 424 | ((string-match "^\\(BREAKPOINT\\|STEPPED\\) process [0-9]+ function [^ ]+ in \\(.+\\)\n\\([0-9]+\\):" | 424 | ((string-match "^\\(BREAKPOINT\\|STEPPED\\) process [0-9]+ function [^ ]+ in \\(.+\\)\n\\([0-9]+\\):" |
| 425 | gud-marker-acc start) | 425 | gud-marker-acc start) |
| @@ -451,12 +451,7 @@ available with older versions of GDB." | |||
| 451 | (setq start (match-end 0))) | 451 | (setq start (match-end 0))) |
| 452 | 452 | ||
| 453 | ;; If we have an incomplete line, store it in gud-marker-acc. | 453 | ;; If we have an incomplete line, store it in gud-marker-acc. |
| 454 | ;; Otherwise clear gud-marker-acc. to avoid an | 454 | (setq gud-marker-acc (substring gud-marker-acc (or start 0)))) |
| 455 | ;; unnecessary concat when this function runs next. | ||
| 456 | (setq gud-marker-acc | ||
| 457 | (if (and (numberp start) (= start (length gud-marker-acc))) | ||
| 458 | (substring gud-marker-acc start) | ||
| 459 | nil))) | ||
| 460 | string) | 455 | string) |
| 461 | 456 | ||
| 462 | (defun gud-sdb-find-file (f) | 457 | (defun gud-sdb-find-file (f) |