diff options
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 74efb3b..3187644 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1652,8 +1652,8 @@ pa_print_registers (raw_regs, regnum, fpregs) { for (j = 0; j < 4; j++) { - val = *(int *)(raw_regs + REGISTER_BYTE (i+(j*18))); - SWAP_TARGET_AND_HOST (&val, 4); + val = + extract_signed_integer (raw_regs + REGISTER_BYTE (i+(j*18)), 4); printf_unfiltered ("%8.8s: %8x ", reg_names[i+(j*18)], val); } printf_unfiltered ("\n"); |