diff options
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 57f32d2..5312174 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -870,7 +870,7 @@ amd64_frame_prev_register (struct frame_info *next_frame, void **this_cache, gdb_assert (regnum >= 0); - if (regnum == SP_REGNUM && cache->saved_sp) + if (regnum == gdbarch_sp_regnum (current_gdbarch) && cache->saved_sp) { *optimizedp = 0; *lvalp = not_lval; |