emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gud breakage: ^done,changelist=[]


From: Nick Roberts
Subject: Re: gud breakage: ^done,changelist=[]
Date: Sat, 30 Oct 2004 08:48:55 +1300

 > > So, in the short term, with care (albeit tedious), this problem should be
 > > avoidable.
 > 
 > The above "mistake" is easy to make.

When debugging programs which don't read from standard input, such as Emacs
(and Lilypond?) the conditional clause in gdb-send can be removed:

(defun gdb-send (proc string)
  "A comint send filter for gdb.
This filter may simply queue output for a later time."
    (gdb-enqueue-input (concat string "\n")))

This should eliminate the problem for such programs but will eventually hang
for those expecting input.

The general problem seems intractable because Emacs has no way of knowing if
input is going to gdb or the inferior. The original code (gdba.el) got round
the problem by always using a separate buffer for program input. Perhaps I
should do what Stefan suggested a while ago and create a lisp command,
gdb-resync, so that the user can recover control during a debug session and
all is not lost.

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]