diff options
| author | Nick Roberts | 2008-01-10 10:27:02 +0000 |
|---|---|---|
| committer | Nick Roberts | 2008-01-10 10:27:02 +0000 |
| commit | 78971dff706c88562bdd848d2aea623401dc7049 (patch) | |
| tree | e84dab2fa8ac66d9bd00d87da6fa05cad10c771e | |
| parent | 20aa98dd7126b53d13fee75be26459d9a2b7505e (diff) | |
| download | emacs-78971dff706c88562bdd848d2aea623401dc7049.tar.gz emacs-78971dff706c88562bdd848d2aea623401dc7049.zip | |
(gdb-dequeue-input): Make doubly sure
session doesn't hang because gdb-pending-triggers is non-nil.
(gdb-frame-handler): Use buffer-file-name instead of
buffer-name in case of duplicate file names.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index ef11668f022..d85bf23c7c5 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1214,10 +1214,12 @@ This filter may simply queue input for a later time." | |||
| 1214 | 1214 | ||
| 1215 | (defun gdb-dequeue-input () | 1215 | (defun gdb-dequeue-input () |
| 1216 | (let ((queue gdb-input-queue)) | 1216 | (let ((queue gdb-input-queue)) |
| 1217 | (and queue | 1217 | (if queue |
| 1218 | (let ((last (car (last queue)))) | 1218 | (let ((last (car (last queue)))) |
| 1219 | (unless (nbutlast queue) (setq gdb-input-queue '())) | 1219 | (unless (nbutlast queue) (setq gdb-input-queue '())) |
| 1220 | last)))) | 1220 | last) |
| 1221 | ;; This should be nil here anyway but set it just to make sure. | ||
| 1222 | (setq gdb-pending-triggers nil)))) | ||
| 1221 | 1223 | ||
| 1222 | (defun gdb-send-item (item) | 1224 | (defun gdb-send-item (item) |
| 1223 | (setq gdb-flush-pending-output nil) | 1225 | (setq gdb-flush-pending-output nil) |
| @@ -3442,7 +3444,8 @@ BUFFER nil or omitted means use the current buffer." | |||
| 3442 | (let ((buffer (marker-buffer gud-overlay-arrow-position)) | 3444 | (let ((buffer (marker-buffer gud-overlay-arrow-position)) |
| 3443 | (position (marker-position gud-overlay-arrow-position))) | 3445 | (position (marker-position gud-overlay-arrow-position))) |
| 3444 | (when (and buffer | 3446 | (when (and buffer |
| 3445 | (string-equal (buffer-name buffer) | 3447 | (string-equal (file-name-nondirectory |
| 3448 | (buffer-file-name buffer)) | ||
| 3446 | (file-name-nondirectory (match-string 3)))) | 3449 | (file-name-nondirectory (match-string 3)))) |
| 3447 | (with-current-buffer buffer | 3450 | (with-current-buffer buffer |
| 3448 | (setq fringe-indicator-alist | 3451 | (setq fringe-indicator-alist |