aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-trace.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-12 15:52:07 +0545
committerMike Frysinger <vapier@gentoo.org>2015-06-12 06:21:38 -0400
commitbffcfec8c3a15b669579b67d5b626c4d14b2b6df (patch)
tree7c1889082f9d83c6d7648707206f83caea6694cc /sim/common/sim-trace.c
parent53d2389fd01ea7eaa83bb2727efd64c9904951ec (diff)
downloadgdb-bffcfec8c3a15b669579b67d5b626c4d14b2b6df.zip
gdb-bffcfec8c3a15b669579b67d5b626c4d14b2b6df.tar.gz
gdb-bffcfec8c3a15b669579b67d5b626c4d14b2b6df.tar.bz2
sim: trace: add WITH_TRACE_ANY_P helper
We have STRACE_ANY_P and TRACE_ANY_P, so add WITH_TRACE_ANY_P to fill out the API. This lets us wrap the internal configure symbol.
Diffstat (limited to 'sim/common/sim-trace.c')
-rw-r--r--sim/common/sim-trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c
index 915965d..f00fe9b 100644
--- a/sim/common/sim-trace.c
+++ b/sim/common/sim-trace.c
@@ -232,7 +232,7 @@ trace_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
switch (opt)
{
case 't' :
- if (! WITH_TRACE)
+ if (!WITH_TRACE_ANY_P)
sim_io_eprintf (sd, "Tracing not compiled in, `-t' ignored\n");
else
return set_trace_option_mask (sd, "trace", TRACE_USEFUL_MASK, arg);
@@ -352,7 +352,7 @@ trace_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
#ifdef SIM_HAVE_ADDR_RANGE
case OPTION_TRACE_RANGE :
- if (WITH_TRACE)
+ if (WITH_TRACE_ANY_P)
{
int cpu_nr;
char *chp = arg;
@@ -378,7 +378,7 @@ trace_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
break;
case OPTION_TRACE_FUNCTION :
- if (WITH_TRACE)
+ if (WITH_TRACE_ANY_P)
{
/*wip: need to compute function range given name*/
}
@@ -395,7 +395,7 @@ trace_option_handler (SIM_DESC sd, sim_cpu *cpu, int opt,
break;
case OPTION_TRACE_FILE :
- if (! WITH_TRACE)
+ if (!WITH_TRACE_ANY_P)
sim_io_eprintf (sd, "Tracing not compiled in, `--trace-file' ignored\n");
else
{