diff options
Diffstat (limited to 'gdb/avr-tdep.c')
-rw-r--r-- | gdb/avr-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index a637cf8..6e58f04 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -36,6 +36,7 @@ #include "regcache.h" #include <string.h> #include "dis-asm.h" +#include "objfiles.h" /* AVR Background: @@ -624,8 +625,7 @@ avr_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end, /* Resolve offset (in words) from __prologue_saves__ symbol. Which is a pushes count in `-mcall-prologues' mode */ - num_pushes = (AVR_MAX_PUSHES - - (i - MSYMBOL_VALUE_ADDRESS (msymbol.minsym)) / 2); + num_pushes = AVR_MAX_PUSHES - (i - BMSYMBOL_VALUE_ADDRESS (msymbol)) / 2; if (num_pushes > AVR_MAX_PUSHES) { |