Commit 78971dff authored by Nick Roberts's avatar Nick Roberts
Browse files

(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.
parent 20aa98dd
......@@ -1214,10 +1214,12 @@ This filter may simply queue input for a later time."
(defun gdb-dequeue-input ()
(let ((queue gdb-input-queue))
(and queue
(let ((last (car (last queue))))
(unless (nbutlast queue) (setq gdb-input-queue '()))
last))))
(if queue
(let ((last (car (last queue))))
(unless (nbutlast queue) (setq gdb-input-queue '()))
last)
;; This should be nil here anyway but set it just to make sure.
(setq gdb-pending-triggers nil))))
(defun gdb-send-item (item)
(setq gdb-flush-pending-output nil)
......@@ -3442,7 +3444,8 @@ BUFFER nil or omitted means use the current buffer."
(let ((buffer (marker-buffer gud-overlay-arrow-position))
(position (marker-position gud-overlay-arrow-position)))
(when (and buffer
(string-equal (buffer-name buffer)
(string-equal (file-name-nondirectory
(buffer-file-name buffer))
(file-name-nondirectory (match-string 3))))
(with-current-buffer buffer
(setq fringe-indicator-alist
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment