From: Pedro Alves <palves@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: Decouple "set confirm" from `from_tty'.
Date: Mon, 23 Jan 2012 17:36:00 -0000 [thread overview]
Message-ID: <4F1D9688.5030904@redhat.com> (raw)
In-Reply-To: <20120120113331.GM31383@adacore.com>
On 01/20/2012 11:33 AM, Joel Brobecker wrote:
>> Eventually, I figured out this was caused by having done
>> "set confirm off" before the source command.
>>
>> (gdb) source /wrong/path/to/file.py
>> /wrong/path/to/file.py: No such file or directory.
>> (gdb) set confirm off
>> (gdb) source /wrong/path/to/file.py
>> (gdb)
>>
>> This was very surprising to me, and I assume to surprise other
>> users too. Turns out that "set confirm off" also has the
>> side-effect of running commands with from_tty == 0, which
>> silences many things. E.g.,
>
> I agree this is very surprising! I'm even amazed that we did not
> realize this until now....
Yeah...
> Sounds good to me. To me, "set confirm off" means do everything
> the same except auto-answer "y" when I said to do something that
> GDB think might be questionable.
Yeah.
> No problem spotted with the patch.
Thanks. The patch is now in, committed in two pieces.
--
Pedro Alves
next prev parent reply other threads:[~2012-01-23 17:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 11:33 Pedro Alves
2012-01-20 14:31 ` Joel Brobecker
2012-01-23 17:36 ` Pedro Alves [this message]
2012-01-23 16:30 ` Jan Kratochvil
2012-01-23 17:15 ` Pedro Alves
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F1D9688.5030904@redhat.com \
--to=palves@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox