diff --git a/src/x86/Gresume.c b/src/x86/Gresume.c index 7d1d934f..77a586ad 100644 --- a/src/x86/Gresume.c +++ b/src/x86/Gresume.c @@ -66,10 +66,10 @@ establish_machine_state (struct cursor *c) if (c->dwarf.args_size) { - if (tdep_access_reg (c, ESP, &val, 0) >= 0) + if (tdep_access_reg (c, UNW_X86_ESP, &val, 0) >= 0) { val += c->dwarf.args_size; - (*access_reg) (as, ESP, &val, 1, arg); + (*access_reg) (as, UNW_X86_ESP, &val, 1, arg); } } return 0; diff --git a/src/x86_64/Gresume.c b/src/x86_64/Gresume.c index 9876a549..3d40756e 100644 --- a/src/x86_64/Gresume.c +++ b/src/x86_64/Gresume.c @@ -98,10 +98,10 @@ establish_machine_state (struct cursor *c) if (c->dwarf.args_size) { - if (tdep_access_reg (c, RSP, &val, 0) >= 0) + if (tdep_access_reg (c, UNW_X86_64_RSP, &val, 0) >= 0) { val += c->dwarf.args_size; - (*access_reg) (as, RSP, &val, 1, arg); + (*access_reg) (as, UNW_X86_64_RSP, &val, 1, arg); } } return 0;