diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/avr-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21cd0f0..281c567 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-04-04 Simon Marchi <simon.marchi@polymtl.ca> + + * avr-tdep.c (avr_frame_unwind_cache): Use + trad_frame_saved_reg::is_addr. + 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> * objfiles.c (get_objfile_bfd_data): Remove objfile parameter, diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 018b18f..5853e69 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -1037,7 +1037,7 @@ avr_frame_unwind_cache (struct frame_info *this_frame, /* Adjust all the saved registers so that they contain addresses and not offsets. */ for (i = 0; i < gdbarch_num_regs (gdbarch) - 1; i++) - if (info->saved_regs[i].addr () > 0) + if (info->saved_regs[i].is_addr ()) info->saved_regs[i].set_addr (info->prev_sp - info->saved_regs[i].addr ()); |