1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-23 16:07:37 +01:00

(rbs_find_stacked): Allow NULL locp.

(Logical change 1.76)
This commit is contained in:
mostang.com!davidm 2003-04-08 20:34:06 +00:00
parent 7057901782
commit 0802cd49ad

View file

@ -105,10 +105,12 @@ rbs_find_stacked (struct cursor *c, unw_word_t regs_to_skip,
if (regs_to_skip < nregs) if (regs_to_skip < nregs)
{ {
/* found it: */ /* found it: */
*locp = ia64_rse_skip_regs (bsp, regs_to_skip); unw_word_t loc = ia64_rse_skip_regs (bsp, regs_to_skip);
if (locp)
*locp = loc;
if (rnat_locp) if (rnat_locp)
{ {
*rnat_locp = ia64_rse_rnat_addr (*locp); *rnat_locp = ia64_rse_rnat_addr (loc);
if (!rbs_contains (&c->rbs_area[curr], *rnat_locp)) if (!rbs_contains (&c->rbs_area[curr], *rnat_locp))
*rnat_locp = c->rbs_area[curr].rnat_loc; *rnat_locp = c->rbs_area[curr].rnat_loc;
} }