unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Jan Nieuwenhuizen <janneke@gnu.org>,
	"Kim F. Storm" <storm@cua.dk>
Subject: Re: gud breakage: ^done,changelist=[]
Date: Fri, 29 Oct 2004 17:45:49 -0400	[thread overview]
Message-ID: <m1sm7xxla6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <16770.40615.484276.300510@farnswood.snap.net.nz> (Nick Roberts's message of "Sat, 30 Oct 2004 08:48:55 +1300")

> The general problem seems intractable because Emacs has no way of knowing if
> input is going to gdb or the inferior.

Yes, gdb-ui would probably need to be more complex to try and resolve the
ambiguity: basically, send the text immediately (in case it's to be sent to
the debugged process) but don't rule out the possibility that it was maybe
sent to gdb: any code that would need to be run if the text was sent to gdb
should be added to a queue of maybe-pending-code, and then carefully analyze
the annotations you receive from gdb to try and infer what was sent to gdb
and what was sent to the debugged process.

In general it's still ambiguous anyway.

> The original code (gdba.el) got round the problem by always using
> a separate buffer for program input.

Yes, it's a much more reliable and straightforward solution.  I think
the only problem with it is how to avoid popping up an input/output buffer
if it's not going to be used.

Maybe what we should do is to always have a separate I/O buffer but only
pop-it up if the process sends output or if the user requests it via
gdb-view-inferior-io.

> 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.

Yes, I think this is still necessary to work around bugs/limitations in the
gdb-ui code.  But it's no match to actually fixing the problems ;-)


        Stefan

  parent reply	other threads:[~2004-10-29 21:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18  9:37 gud breakage: ^done,changelist=[] Jan Nieuwenhuizen
2004-10-18 11:17 ` Nick Roberts
2004-10-18 12:17   ` Jan Nieuwenhuizen
2004-10-18 12:58     ` Kim F. Storm
2004-10-18 21:22       ` Jan Nieuwenhuizen
2004-10-19  2:20         ` Nick Roberts
2004-10-27  8:43       ` Nick Roberts
2004-10-27 12:07         ` Kim F. Storm
2004-10-29 19:48           ` Nick Roberts
2004-10-29 20:34             ` Jan Nieuwenhuizen
2004-10-29 21:45             ` Stefan [this message]
2004-10-28  7:59         ` Jan Nieuwenhuizen
2004-10-19  6:13 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1sm7xxla6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=janneke@gnu.org \
    --cc=storm@cua.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).