* d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte

accumulators.
This commit is contained in:
Andrew Cagney 1998-02-12 07:32:58 +00:00
parent 9308792034
commit 9df3ba709f
2 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Thu Feb 12 18:25:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
* d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
accumulators.
Thu Feb 12 17:10:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
* valops.c (value_at): For d10v, make read pointers with

View File

@ -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