diff options
Diffstat (limited to 'gdb/gcore.c')
-rw-r--r-- | gdb/gcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index 9425f15b5f4..ab1d9f00859 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -184,7 +184,7 @@ derive_stack_segment (bfd_vma *bottom, bfd_vma *top) /* Save frame pointer of TOS frame. */ *top = get_frame_base (fi); /* If current stack pointer is more "inner", use that instead. */ - if (gdbarch_inner_than (current_gdbarch, get_frame_sp (fi), *top)) + if (gdbarch_inner_than (get_frame_arch (fi), get_frame_sp (fi), *top)) *top = get_frame_sp (fi); /* Find prev-most frame. */ |