Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Rohr, Stephan" <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 18:58:16 +0200	[thread overview]
Message-ID: <868qtlkb13.fsf@gnu.org> (raw)
In-Reply-To: <DS7PR11MB6247923A395015659E51A9A9935B2@DS7PR11MB6247.namprd11.prod.outlook.com> (stephan.rohr@intel.com)

> From: "Rohr, Stephan" <stephan.rohr@intel.com>
> CC: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
> Date: Thu, 14 Nov 2024 16:30:26 +0000
> 
> I further investigated the issue.  The issue is triggered if "TERM=dump" is set in a MinGW
> environment.  I can reproduce the issue in CLI mode, too:
> 
>   $ ./gdb -q
>   (gdb) dir
>   Reinitialize source path to empty? (y or n) [answered Y; input not from terminal]
>   Source directories searched: $cdir;$cwd
>   (gdb)

Strange, it doesn't happen here, at least not when I run GDB from
cmd.exe after setting TERM=dumb.

> I used the setting to workaround some issues when running tests on Windows using
> MinGW.  I can see that control characters are added to the output of different commands,
> e.g., 'test_compiler_info' fails with:
> 
>   builtin_spawn -ignore SIGHUP gcc -fdiagnostics-color=never -c -o ...
>   ^[[6nget_compiler_info: gcc-14-2-0
>   get_compiler_info: gcc-14-2-0
>   Executing on host: gcc  -fno-stack-protector  -w -c -g  -o ...
>   builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -w -c -g -o ...
>   ^[[6noutput is:
>   ^[[6n
>   gdb compile failed, ^[[6n
> 
> I haven't understood yet why this is added in MinGW or how to disable those.
> 
> The patch enables me to run the tests I'm interested in in a MinGW environment.

OK, if that affects only the test suite and only in some environments,
I guess the change cannot do any harm.

Thanks.

  reply	other threads:[~2024-11-14 16:58 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
2024-11-14 16:30     ` Rohr, Stephan
2024-11-14 16:58       ` Eli Zaretskii [this message]
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=868qtlkb13.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