aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-trace.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1997-05-06 11:55:21 +0000
committerMichael Meissner <gnu@the-meissners.org>1997-05-06 11:55:21 +0000
commitd0adfefd44ac5c813ecb75487b36f4d804a1324a (patch)
tree7ba558554ff646e50051a90122482fae17527291 /sim/common/sim-trace.h
parenta77241718f660b81eaa8e85c9b66689101654a97 (diff)
downloadgdb-d0adfefd44ac5c813ecb75487b36f4d804a1324a.zip
gdb-d0adfefd44ac5c813ecb75487b36f4d804a1324a.tar.gz
gdb-d0adfefd44ac5c813ecb75487b36f4d804a1324a.tar.bz2
Fix typo; pass trace_line request as arg; pass common stuff in static struct
Diffstat (limited to 'sim/common/sim-trace.h')
-rw-r--r--sim/common/sim-trace.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h
index 91d0be6..8e1eebc 100644
--- a/sim/common/sim-trace.h
+++ b/sim/common/sim-trace.h
@@ -89,6 +89,15 @@ typedef struct {
FILE *trace_file;
#define TRACE_FILE(t) ((t)->trace_file)
} TRACE_DATA;
+
+/* Structure containing constant stuff to pass to trace_one_insn */
+
+typedef struct {
+ const char *phase; /* which phase this in (decode,insn) */
+ char **p_filename; /* ptr to filename insns where defined in */
+ char **p_name; /* ptr to instruction name */
+ int linenum; /* line number of line where insn is defined */
+} TRACE_INSN_DATA;
/* Usage macros. */
@@ -113,9 +122,9 @@ struct _sim_cpu;
/* Non-zero if "--trace-fpu" specified for CPU. */
#define TRACE_FPU_P(cpu) TRACE_P (cpu, TRACE_FPU_IDX)
-extern void trace_one_insn PARAMS ((SIM_DESC, sim_cpu *, const char *,
- int, int, address_word,
- const char *name));
+extern void trace_one_insn PARAMS ((SIM_DESC, sim_cpu *,
+ address_word, int,
+ const TRACE_INSN_DATA *));
extern void trace_printf PARAMS ((SIM_DESC, sim_cpu *, const char *, ...))
__attribute__((format (printf, 3, 4)));