1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-27 13:33:43 +01:00

(common_init): Don't initialize eh_args[] pro-actively; do it lazily.

Clear eh_valid_mask to zero.

(Logical change 1.45)
This commit is contained in:
mostang.com!davidm 2003-02-08 10:10:59 +00:00
parent be592ddeb2
commit 7e29f92baa

View file

@ -103,27 +103,12 @@ common_init (struct cursor *c)
c->pi.flags = 0;
#ifdef UNW_LOCAL_ONLY
c->eh_args[0] = c->eh_args[1] = c->eh_args[2] = c->eh_args[3] = 0;
#else
for (i = 0; i < 4; ++i)
{
ret = ia64_get (c, IA64_REG_LOC (c, UNW_IA64_GR + 15 + i),
&c->eh_args[i]);
if (ret < 0)
{
if (ret == -UNW_EBADREG)
c->eh_args[i] = 0;
else
return ret;
}
}
#endif
c->sigcontext_loc = 0;
c->is_signal_frame = 0;
c->hint = 0;
c->prev_script = 0;
c->eh_valid_mask = 0;
c->pi_valid = 0;
return 0;
}