From: Simon Marchi <simon.marchi@polymtl.ca>
To: Sandra Loosemore <sandra@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch, testsuite] Clean up gdb.trace results
Date: Thu, 11 Oct 2018 04:08:00 -0000 [thread overview]
Message-ID: <6bbd680801f5aaf7709633e51c4a6d11@polymtl.ca> (raw)
In-Reply-To: <8abc8c2c-150c-99d9-e0d5-992225a8cac5@codesourcery.com>
On 2018-10-10 22:01, Sandra Loosemore wrote:
> Thanks, I tried that and made a couple tweaks to the patch to fix
> those errors. Is this version OK?
>
> -Sandra
Hi Sandra,
I'd just like to understand the situation a bit more. From what I
understand, trace-common.h is only useful for fast tracepoint tests.
Let's take the actions.exp test, for example. It uses actions.c, which
includes trace-common.h, therefore you added a
gdb_trace_common_supports_arch check. However, actions.exp does not
rely on fast tracepoint support at all. actions.c happens to be used by
another test that tests fast tracepoints. The result is that if an
architecture supports tracepoints, but not fast tracepoints, the
actions.exp test will be skipped even though it would be relevant.
Trying to read between the lines: if your target did not support
tracepoints at all, then the gdb_target_supports_trace calls would be
enough. If your target did support regular and fast tracepoints, then
you would just add support for it in trace-common.h, because you would
want to run the fast tracepoint tests. So the remaining combination is
that your target supports regular tracepoints, but not fast tracepoints.
Is it the case?
If so, I think the right fix would be to untangle fast tracepoints tests
from regular tracepoints tests. The goal being to make it possible to
run as many tests as possible against targets that only support regular
tracepoints.
Or maybe I'm completely lost, in which case can you clarify what your
use case is?
Thanks,
Simon
next prev parent reply other threads:[~2018-10-11 4:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-07 1:09 Sandra Loosemore
2018-10-08 2:25 ` Simon Marchi
2018-10-11 2:01 ` Sandra Loosemore
2018-10-11 4:08 ` Simon Marchi [this message]
2018-10-11 5:19 ` Sandra Loosemore
2018-10-12 21:36 ` Simon Marchi
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=6bbd680801f5aaf7709633e51c4a6d11@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=sandra@codesourcery.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