Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pedro Alves <palves@redhat.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: Decouple "set confirm" from `from_tty'.
Date: Fri, 20 Jan 2012 14:31:00 -0000	[thread overview]
Message-ID: <20120120113331.GM31383@adacore.com> (raw)
In-Reply-To: <4F194C6F.2080404@redhat.com>

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

> So I'd like to stop it doing that.
> Comments?

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.

No problem spotted with the patch.

-- 
Joel


  reply	other threads:[~2012-01-20 11:33 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 [this message]
2012-01-23 17:36   ` Pedro Alves
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=20120120113331.GM31383@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /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