aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-02-12 07:32:58 +0000
committerAndrew Cagney <cagney@redhat.com>1998-02-12 07:32:58 +0000
commit9df3ba709f50d5a9f41420993a9ccecb1a4191e2 (patch)
tree3ae14aa9e56be954e5982c5402bba4b224ae9c74 /gdb/d10v-tdep.c
parent9308792034b6f01c920ea7d63bfa4a9538fd9a8d (diff)
downloadgdb-9df3ba709f50d5a9f41420993a9ccecb1a4191e2.zip
gdb-9df3ba709f50d5a9f41420993a9ccecb1a4191e2.tar.gz
gdb-9df3ba709f50d5a9f41420993a9ccecb1a4191e2.tar.bz2
* d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
accumulators.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 95b1ef5..6e57891 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -414,7 +414,7 @@ show_regs (args, from_tty)
char *args;
int from_tty;
{
- LONGEST num1, num2;
+ int a;
printf_filtered ("PC=%04x (0x%x) PSW=%04x RPT_S=%04x RPT_E=%04x RPT_C=%04x\n",
read_register (PC_REGNUM), D10V_MAKE_IADDR (read_register (PC_REGNUM)),
read_register (PSW_REGNUM),
@@ -443,9 +443,19 @@ show_regs (args, from_tty)
read_register (IMAP0_REGNUM),
read_register (IMAP1_REGNUM),
read_register (DMAP_REGNUM));
- read_register_gen (A0_REGNUM, (char *)&num1);
- read_register_gen (A0_REGNUM+1, (char *)&num2);
- printf_filtered ("A0-A1 %010llx %010llx\n",num1, num2);
+ printf_filtered ("A0-A1");
+ for (a = A0_REGNUM; a <= A0_REGNUM + 1; a++)
+ {
+ char num[MAX_REGISTER_RAW_SIZE];
+ int i;
+ printf_filtered (" ");
+ read_register_gen (a, (char *)&num);
+ for (i = 0; i < MAX_REGISTER_RAW_SIZE; i++)
+ {
+ printf_filtered ("%02x", (num[i] & 0xff));
+ }
+ }
+ printf_filtered ("\n");
}
CORE_ADDR