diff options
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.c b/gdb/target.c index cfbbd17..d577055 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1762,11 +1762,11 @@ debug_print_register (const char * func, int regno) unsigned char buf[MAX_REGISTER_SIZE]; deprecated_read_register_gen (regno, buf); fprintf_unfiltered (gdb_stdlog, " = "); - for (i = 0; i < DEPRECATED_REGISTER_RAW_SIZE (regno); i++) + for (i = 0; i < register_size (current_gdbarch, regno); i++) { fprintf_unfiltered (gdb_stdlog, "%02x", buf[i]); } - if (DEPRECATED_REGISTER_RAW_SIZE (regno) <= sizeof (LONGEST)) + if (register_size (current_gdbarch, regno) <= sizeof (LONGEST)) { fprintf_unfiltered (gdb_stdlog, " 0x%s %s", paddr_nz (read_register (regno)), |