From 83da1e6ac1a48d1eb34f6e51194f10a9cf11a153 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Thu, 25 Apr 2002 06:47:29 +0000 Subject: [PATCH] (unw_get_save_loc): Replace check for IA64_FLAG_SIGTRAMP with check against c->sigcontext_loc. (Logical change 1.18) --- src/ia64/unw_get_save_loc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ia64/unw_get_save_loc.c b/src/ia64/unw_get_save_loc.c index 506bd90b..3c662552 100644 --- a/src/ia64/unw_get_save_loc.c +++ b/src/ia64/unw_get_save_loc.c @@ -61,14 +61,10 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc) if (nat_loc >= c->rbs_top) nat_loc = c->top_rnat_loc; } - else if (c->pi.flags & IA64_FLAG_SIGTRAMP) + else if (c->sigcontext_loc) { /* NaT bit is saved in a sigcontext. */ - ret = ia64_get (c, c->sp + 0x10 + SIGFRAME_ARG2_OFF, &sc_addr); - if (ret < 0) - return ret; - - loc = sc_addr + SIGCONTEXT_NAT_OFF; + loc = c->sigcontext_loc + SIGCONTEXT_NAT_OFF; } } break;