From: Pedro Alves <pedro@palves.net>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Fix gdb.multi/multi-term-settings.exp
Date: Tue, 28 Sep 2021 19:14:17 +0100 [thread overview]
Message-ID: <81b6b3e3-12c4-e074-1b5d-70c7be375a11@palves.net> (raw)
In-Reply-To: <20210928175722.GA15861@delia>
On 2021-09-28 6:57 p.m., Tom de Vries wrote:
> Hi,
>
> When running test-case gdb.multi/multi-term-settings.exp in conjunction with:
> ...
> $ stress -c $(($(cat /proc/cpuinfo | grep -c ^processor) + 1))
> ...
> I run into:
> ...
> (gdb) PASS: gdb.multi/multi-term-settings.exp: \
> inf1_how=attach: inf2_how=attach: info inferiors
> pid=14783, count=59^M
> pid=14783, count=60^M
> ...
> pid=14783, count=118^M
> pid=14783, count=119^M
> pid=14778, count=90^M
> pid=14778, count=91^M
> pid=14778, count=92^M
> pid=14778, count=93^M
> pid=14778, count=94^M
> pid=14778, count=95^M
> PASS: gdb.multi/multi-term-settings.exp: inf1_how=attach: inf2_how=attach: continue
> Quit^M
> (gdb) FAIL: gdb.multi/multi-term-settings.exp: \
> inf1_how=attach: inf2_how=attach: stop with control-c (SIGINT)
> ...
>
> It occurred to me that the "Continuing." we see otherwise is not shown and
> that it's possible that the control-C that is send is caught by gdb when
> printing this.
>
> Fix this by waiting for the "Continuing." message before sending control-C.
>
> Tested on x86_64-linux.
>
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24929
>
> Any comments?
>
Hmm, think rang a bell. I had posted a patch for this a few months back:
https://sourceware.org/pipermail/gdb-patches/2021-June/179503.html
The idea is the same, but my version is more complete, IMHO.
Sorry I didn't think of splitting that one out of the series at the time, this
could have been fixed all this time. :-/
next prev parent reply other threads:[~2021-09-28 18:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 17:57 Tom de Vries via Gdb-patches
2021-09-28 18:14 ` Pedro Alves [this message]
2021-09-28 22:42 ` Tom de Vries via Gdb-patches
2021-09-29 11:18 ` Pedro Alves
2021-09-29 13:56 ` Tom de Vries via Gdb-patches
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=81b6b3e3-12c4-e074-1b5d-70c7be375a11@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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