Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
To: Pedro Alves <pedro@palves.net>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Fix gdb.multi/multi-term-settings.exp
Date: Wed, 29 Sep 2021 00:42:24 +0200	[thread overview]
Message-ID: <faf86428-866b-9a3e-5fd2-668162a4e538@suse.de> (raw)
In-Reply-To: <81b6b3e3-12c4-e074-1b5d-70c7be375a11@palves.net>

On 9/28/21 8:14 PM, Pedro Alves wrote:
> 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.  :-/
> 

Np.  I applied the patch locally and it works for me.

Anything preventing this from going in now?

Thanks,
- Tom

  reply	other threads:[~2021-09-28 22:42 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
2021-09-28 22:42   ` Tom de Vries via Gdb-patches [this message]
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=faf86428-866b-9a3e-5fd2-668162a4e538@suse.de \
    --to=gdb-patches@sourceware.org \
    --cc=pedro@palves.net \
    --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