This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Ctrl-D
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>, GDB Patches <gdb-patches at sourceware dot org>, john dot pye at anu dot edu dot au
- Date: Tue, 5 Dec 2006 17:06:27 -0800
- Subject: Re: [PATCH] Ctrl-D
- References: <456ED831.6000308@st.com> <20061205205030.GD25572@nevyn.them.org>
> > New behaviour:
> >
> > (gdb) <C-d>quit
> > The program is running. Exit anyway? (y or n) <C-d>Y
> > bash$
>
> How'd you feel about "EOF [assumed %c]" or something like that? I'd
> look at that and think I typed the Y.
I really like Daniel's suggestion.
> > 2006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
> >
> > * event-top.c (command_handler): On EOF, print 'quit' and run quit
> > command via execute_command such that hooks and trace work.
> > * utils.c (defaulted_query): On EOF, print default answer and newline.
>
> OK for HEAD with or without that change, as you prefer. I'd recommend
> this for 6.6 now that it's in HEAD; Joel, is that OK?
Sure. I was a bit nervious about any unexpected side-effect of the change
in event-top.c (changing the call to quit_command() into a call to
execute_command ("quit")) But if you think it's low risk, then I don't
have any problem.
--
Joel