This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Never silently discard internal errors


On Tue, Sep 26, 2006 at 06:29:12AM +0300, Eli Zaretskii wrote:
> > Date: Mon, 25 Sep 2006 16:05:34 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: gdb-patches@sourceware.org
> > 
> > I don't think we could start prompting on pipes; I'm sure it would
> > break some things, probably including the emacs mode in question.
> 
> Can you elaborate about the breakage?

I don't know what would break for sure, but I imagine that code which
has never before received any "(y or n)" prompts would not know what to
do when it got one, for any operations it conducted on behalf of the
user.  This is the sort of thing that causes tests in the testsuite to
time out.  The other likely problem is with line buffering; output over
a pipe is on many platforms block buffered rather than line buffered,
and the prompts might fail to show up when they were needed.

This is all speculation!  Maybe it would just work, but it doesn't seem
like a great change unless someone who thinks it's a good idea
volunteers to test a bunch of different scenarios, and I'm not that
interested in the issue, I'm afraid.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]