Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stephan Rohr <stephan.rohr@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/1] testsuite: skip confirmation in 'gdb_reinitialize_dir'
Date: Thu, 14 Nov 2024 11:43:50 +0200	[thread overview]
Message-ID: <86r07ejgkp.fsf@gnu.org> (raw)
In-Reply-To: <20241114090051.3496256-2-stephan.rohr@intel.com> (message from Stephan Rohr on Thu, 14 Nov 2024 01:00:51 -0800)

> From: Stephan Rohr <stephan.rohr@intel.com>
> Date: Thu, 14 Nov 2024 01:00:51 -0800
> 
> From: "Rohr, Stephan" <stephan.rohr@intel.com>
> 
> Some shells automatically confirm the 'dir' command:
> 
>   (gdb) dir
>   Reinitialize source path to empty? (y or n)
>     [answered Y; input not from terminal]
>   Source directories searched: $cdir;$cwd
>   (gdb) y
>   dir <...>/gdb/testsuite/gdb.base
>   Undefined command: "y".  Try "help".

Which shell is involved here?

> For example, this reprdocues on a MinGW32 environment.  Skip sending
> 'y' if the command is already confirmed.
> ---
>  gdb/testsuite/lib/gdb.exp | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Are you saying this problem happens only in the test suite?  When I
run GDB interactively, typing "dir" followed by Enter does request my
confirmation, it doesn't confirm automatically.  Why does that happen
in the test suite?

Thanks.

  reply	other threads:[~2024-11-14  9:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-14  9:00 [PATCH 0/1] " Stephan Rohr
2024-11-14  9:00 ` [PATCH 1/1] testsuite: " Stephan Rohr
2024-11-14  9:43   ` Eli Zaretskii [this message]
2024-11-14 16:30     ` Rohr, Stephan
2024-11-14 16:58       ` Eli Zaretskii
2024-11-15 20:18   ` Tom Tromey

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=86r07ejgkp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=stephan.rohr@intel.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