From: Pedro Alves <palves@redhat.com>
To: "Marcin Kościelnicki" <koriakin@0x04.net>, gdb-patches@sourceware.org
Cc: antoine.tremblay@ericsson.com
Subject: Re: [PATCH] gdb.trace: Move more target dependencies to trace-support.exp
Date: Thu, 25 Feb 2016 13:45:00 -0000 [thread overview]
Message-ID: <56CF057F.1010208@redhat.com> (raw)
In-Reply-To: <1455884629-23354-1-git-send-email-koriakin@0x04.net>
On 02/19/2016 12:23 PM, Marcin KoÅcielnicki wrote:
> For some strange reason, the call_insn setting code already knew about
> arm, powerpc, s390, and mips - I went ahead and added the remaining
> information about those. I'm not particularly sure if I got mips right,
> but that won't matter anyway until someone actually writes tracepoint
> support for that.
The gdb.trace/entry-values.exp testcase runs some tests before restarting gdb
for a trace session. That first part of the testcase runs on all targets.
I'm not sure I really like this moving of test-specific variables that aren't
shared by more tests, to the shared trace support file. Several of these are
only used after gdb_target_supports_trace checks. So we could also say that
the problem is that the tests are skipped. E.g., in ftrace.exp:
# This expression is used for testing emit_reg.
if [is_amd64_regs_target] {
set arg0exp "\$rdi"
} elseif [is_x86_like_target] {
set arg0exp "*(int *) (\$ebp + 8)"
} elseif { [istarget "aarch64*-*-*"] } {
set arg0exp "\$x0"
} else {
set arg0exp ""
}
if { "$arg0exp" != "" } {
test_ftrace_condition "($arg0exp > 500)" "globvar" { 6 7 8 9 10 }
}
If we removed the else branch or set arg0exp to "port me", someone porting
fast tracepoints to a new architecture would notice it, instead of silently
getting the test skipped.
Thanks,
Pedro Alves
prev parent reply other threads:[~2016-02-25 13:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 12:23 Marcin Kościelnicki
2016-02-19 15:05 ` Antoine Tremblay
2016-02-19 15:18 ` Marcin Kościelnicki
2016-02-20 14:02 ` [PATCH 1/3] " Marcin Kościelnicki
2016-02-20 14:02 ` [PATCH 2/3] gdb.trace: Surround $call_insn with \y in entry-values.exp Marcin Kościelnicki
2016-02-25 14:19 ` Pedro Alves
2016-02-25 15:12 ` Marcin Kościelnicki
2016-02-20 14:02 ` [PATCH 3/3] gdb.trace: Remove unnecessary target check from ftrace.exp Marcin Kościelnicki
2016-02-25 14:22 ` Pedro Alves
2016-02-25 15:12 ` Marcin Kościelnicki
2016-02-25 13:45 ` Pedro Alves [this message]
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=56CF057F.1010208@redhat.com \
--to=palves@redhat.com \
--cc=antoine.tremblay@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=koriakin@0x04.net \
/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