From: Andrew Cagney Date: Thu, 12 Feb 1998 07:32:58 +0000 (+0000) Subject: * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9df3ba709f50d5a9f41420993a9ccecb1a4191e2;p=binutils-gdb.git * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte accumulators. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e8d8eea7425..44d69897595 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Feb 12 18:25:42 1998 Andrew Cagney + + * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte + accumulators. + Thu Feb 12 17:10:22 1998 Andrew Cagney * valops.c (value_at): For d10v, make read pointers with diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 95b1ef55560..6e5789172d8 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