aboutsummaryrefslogtreecommitdiff
path: root/gdb/d30v-tdep.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-09-09 00:02:17 +0000
committerStan Shebs <shebs@codesourcery.com>1999-09-09 00:02:17 +0000
commitd4f3574e777abfa65c9ba134e582228f3f32a8d6 (patch)
tree408b74c26833555087f04f4ec466afd488af6087 /gdb/d30v-tdep.c
parent325188ecac3a52d92d359c70f9b730470760e1d7 (diff)
downloadgdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.zip
gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.gz
gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.bz2
import gdb-1999-09-08 snapshot
Diffstat (limited to 'gdb/d30v-tdep.c')
-rw-r--r--gdb/d30v-tdep.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/gdb/d30v-tdep.c b/gdb/d30v-tdep.c
index 862566f..d66fefbbe 100644
--- a/gdb/d30v-tdep.c
+++ b/gdb/d30v-tdep.c
@@ -34,6 +34,8 @@
#include "symfile.h"
#include "objfiles.h"
+#include "language.h" /* For local_hex_string() */
+
void d30v_frame_find_saved_regs PARAMS ((struct frame_info * fi,
struct frame_saved_regs * fsr));
void d30v_frame_find_saved_regs_offsets PARAMS ((struct frame_info * fi,
@@ -727,10 +729,11 @@ d30v_print_register (regnum, tabular)
if (regnum < A0_REGNUM)
{
if (tabular)
- printf_filtered ("%08x", read_register (regnum));
+ printf_filtered ("%08lx", (long) read_register (regnum));
else
- printf_filtered ("0x%x %d", read_register (regnum),
- read_register (regnum));
+ printf_filtered ("0x%lx %ld",
+ (long) read_register (regnum),
+ (long) read_register (regnum));
}
else
{
@@ -1162,10 +1165,10 @@ trace_info (args, from_tty)
for (i = 0; i < trace_data.size; ++i)
{
- printf_filtered ("%d: %d instruction%s at 0x%x\n",
+ printf_filtered ("%d: %d instruction%s at 0x%s\n",
i, trace_data.counts[i],
(trace_data.counts[i] == 1 ? "" : "s"),
- trace_data.addrs[i]);
+ paddr_nz (trace_data.addrs[i]));
}
}
else
@@ -1294,7 +1297,9 @@ tdisassemble_command (arg, from_tty)
high = low;
}
- printf_filtered ("Dump of trace from %d to %d:\n", low, high);
+ printf_filtered ("Dump of trace from %s to %s:\n",
+ paddr_u (low),
+ paddr_u (high));
display_trace (low, high);