aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/misc.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1997-05-14 22:06:45 +0000
committerMichael Meissner <gnu@the-meissners.org>1997-05-14 22:06:45 +0000
commit93555c3b026cb5cd5a4395b59cdee1ec7944264a (patch)
tree9c53f72c40a5fbcf276703a2af7114d8207b80b3 /sim/tic80/misc.c
parent4dbe5f8d3cf7861d1e524f9a49a0d66ee17b7def (diff)
downloadgdb-93555c3b026cb5cd5a4395b59cdee1ec7944264a.zip
gdb-93555c3b026cb5cd5a4395b59cdee1ec7944264a.tar.gz
gdb-93555c3b026cb5cd5a4395b59cdee1ec7944264a.tar.bz2
Make columns line up for fpu operation tracing
Diffstat (limited to 'sim/tic80/misc.c')
-rw-r--r--sim/tic80/misc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/tic80/misc.c b/sim/tic80/misc.c
index e24efd3..33a2785b 100644
--- a/sim/tic80/misc.c
+++ b/sim/tic80/misc.c
@@ -239,11 +239,11 @@ tic80_trace_fpu3 (SIM_DESC sd,
trace_one_insn (sd, cpu, cia.ip, 1,
itable[indx].file, itable[indx].line_nr, "fpu",
- "%-*s %*f %*f => %*f",
+ "%-*s %*g %*g => %*g",
tic80_size_name, itable[indx].name,
- SIZE_HEX + SIZE_DECIMAL + 1, sim_fpu_2d (input1),
- SIZE_HEX + SIZE_DECIMAL + 1, sim_fpu_2d (input2),
- SIZE_HEX + SIZE_DECIMAL + 1, sim_fpu_2d (result));
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input1),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input2),
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (result));
}
/* Trace the result of an FPU operation with 1 floating point input and a floating point output */
@@ -260,10 +260,10 @@ tic80_trace_fpu2 (SIM_DESC sd,
trace_one_insn (sd, cpu, cia.ip, 1,
itable[indx].file, itable[indx].line_nr, "fpu",
- "%-*s %*f %-*s => %*f",
+ "%-*s %*g %-*s => %*g",
tic80_size_name, itable[indx].name,
- SIZE_HEX + SIZE_DECIMAL + 1, sim_fpu_2d (input),
- SIZE_HEX + SIZE_DECIMAL + 1, "",
+ SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input),
+ SIZE_HEX + SIZE_DECIMAL + 3, "",
SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (result));
}