diff options
author | Ben Elliston <bje@au.ibm.com> | 2001-02-22 20:47:49 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2001-02-22 20:47:49 +0000 |
commit | 01816cd804ec526927f53f0e408dae8c6ea269f2 (patch) | |
tree | a720856f2564cd16f8ad0153d1fedcbe1d8d879b /sim/common/sim-trace.h | |
parent | 41c4999810228d4795d0855426bfa4d24bb31230 (diff) | |
download | gdb-01816cd804ec526927f53f0e408dae8c6ea269f2.zip gdb-01816cd804ec526927f53f0e408dae8c6ea269f2.tar.gz gdb-01816cd804ec526927f53f0e408dae8c6ea269f2.tar.bz2 |
2001-02-22 Ben Elliston <bje@redhat.com>
* sim-trace.h (TRACE_VPU_IDX): Add.
(TRACE_vpu): Define.
(WITH_TRACE_VPU_P): Likewise.
(TRACE_VPU_P): Likewise.
* sim-trace.c (OPTION_TRACE_VPU): Define.
(trace_options): Add --trace-vpu.
(trace_option_handler): Handle OPTION_TRACE_VPU.
(trace_option_handler): Include VPU tracing in --trace-semantics.
(trace_idx_to_str): Handle TRACE_VPU_IDX.
Diffstat (limited to 'sim/common/sim-trace.h')
-rw-r--r-- | sim/common/sim-trace.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h index 167e710..53a10f3 100644 --- a/sim/common/sim-trace.h +++ b/sim/common/sim-trace.h @@ -1,5 +1,5 @@ /* Simulator tracing/debugging support. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 2001 Free Software Foundation, Inc. Contributed by Cygnus Support. This file is part of GDB, the GNU debugger. @@ -63,6 +63,9 @@ enum { /* Trace fpu operations. */ TRACE_FPU_IDX, + /* Trace vpu operations. */ + TRACE_VPU_IDX, + /* Trace branching. */ TRACE_BRANCH_IDX, @@ -100,6 +103,7 @@ enum { #define TRACE_core (1 << TRACE_CORE_IDX) #define TRACE_events (1 << TRACE_EVENTS_IDX) #define TRACE_fpu (1 << TRACE_FPU_IDX) +#define TRACE_vpu (1 << TRACE_VPU_IDX) #define TRACE_branch (1 << TRACE_BRANCH_IDX) #define TRACE_debug (1 << TRACE_DEBUG_IDX) @@ -114,6 +118,7 @@ enum { #define WITH_TRACE_CORE_P (WITH_TRACE & TRACE_core) #define WITH_TRACE_EVENTS_P (WITH_TRACE & TRACE_events) #define WITH_TRACE_FPU_P (WITH_TRACE & TRACE_fpu) +#define WITH_TRACE_VPU_P (WITH_TRACE & TRACE_vpu) #define WITH_TRACE_BRANCH_P (WITH_TRACE & TRACE_branch) #define WITH_TRACE_DEBUG_P (WITH_TRACE & TRACE_debug) @@ -210,12 +215,11 @@ typedef struct _trace_data { #define TRACE_CORE_P(cpu) TRACE_P (cpu, TRACE_CORE_IDX) #define TRACE_EVENTS_P(cpu) TRACE_P (cpu, TRACE_EVENTS_IDX) #define TRACE_FPU_P(cpu) TRACE_P (cpu, TRACE_FPU_IDX) +#define TRACE_VPU_P(cpu) TRACE_P (cpu, TRACE_VPU_IDX) #define TRACE_BRANCH_P(cpu) TRACE_P (cpu, TRACE_BRANCH_IDX) #define TRACE_DEBUG_P(cpu) TRACE_P (cpu, TRACE_DEBUG_IDX) -/* Traceing functions. - - */ +/* Tracing functions. */ /* Prime the trace buffers ready for any trace output. Must be called prior to any other trace operation */ |