From: Luis Machado via Gdb-patches <gdb-patches@sourceware.org>
To: Simon Marchi <simon.marchi@polymtl.ca>,
Tom de Vries <tdevries@suse.de>,
gdb-patches@sourceware.org
Subject: Re: [committed][gdb/testsuite] Make gdb.mi/mi-sym-info.exp more robust against timeouts
Date: Fri, 30 Apr 2021 10:34:14 -0300 [thread overview]
Message-ID: <2a638604-5146-6c0d-07fd-a0073ce61d31@linaro.org> (raw)
In-Reply-To: <42e495c3-2d64-ad20-8402-1c0b409db001@polymtl.ca>
On 4/30/21 10:28 AM, Simon Marchi wrote:
> On 2021-04-30 9:20 a.m., Luis Machado wrote:> On 4/30/21 10:06 AM, Simon Marchi wrote:
>>> On 2021-04-30 8:55 a.m., Luis Machado via Gdb-patches wrote:
>>>> Wouldn't it be more reliable to do line-by-line matching instead of sprinkling timeouts across the test? Or so I've been told.
>>>>
>>>> This doesn't seem to be an instance where GDB is taking too long, but rather that the MI output is very verbose, right?
>>>
>>> From what I can see, it's a case of GDB thinking for a long time
>>> (gathering symbols) before outputting anything. You can see it
>>> by having a
>>>
>>> $ tail -F testsuite/gdb.log
>>>
>>> on the side, while you run the test.
>>>
>>> Another one that I found times out in a similar way on my machine is
>>> gdb.base/info-os.exp.
>>>
>>> Simon
>>>
>>
>> Fair enough. But I also see the output being 113K chars in one case, no line breaks. I think these instances of very long lines are something to be dealt with.
>
> Yeah, good point. If GDB takes 6 seconds to think and Dejagnu takes 6
> seconds to read the long input, the timeout is a result of the
> combination of both, so it wouldn't hurt to parse item by item. It's a
> bit more work to parse one item at the time, but in the end I think it
> also helps when you need to debug the test, as you can print a little
> something after parsing each item and know where things went wrong.
What I'm unsure about is if the MI protocol cares about line breaks or
not. If not, there is no reason we should be putting out such long line,
as it is hard on the test infrastructure.
>
> Simon
>
next prev parent reply other threads:[~2021-04-30 13:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 9:27 Tom de Vries
2021-04-30 12:55 ` Luis Machado via Gdb-patches
2021-04-30 13:05 ` tdevries
2021-04-30 13:06 ` Simon Marchi via Gdb-patches
2021-04-30 13:20 ` Luis Machado via Gdb-patches
2021-04-30 13:28 ` Simon Marchi via Gdb-patches
2021-04-30 13:34 ` Luis Machado via Gdb-patches [this message]
2021-04-30 13:41 ` Simon Marchi 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=2a638604-5146-6c0d-07fd-a0073ce61d31@linaro.org \
--to=gdb-patches@sourceware.org \
--cc=luis.machado@linaro.org \
--cc=simon.marchi@polymtl.ca \
--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