mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-04 17:09:25 +01:00
(common_init): Drop initialization of c->rbs_right_edge.
Initialize size of first rbs_area[] to 1<<63 so that we can maintain a notion of "above" and "below". (Logical change 1.52)
This commit is contained in:
parent
77821808ab
commit
8a621f78ff
1 changed files with 7 additions and 2 deletions
|
@ -94,9 +94,14 @@ common_init (struct cursor *c)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
c->rbs_curr = c->rbs_left_edge = c->rbs_right_edge = 0;
|
||||
c->rbs_curr = c->rbs_left_edge = 0;
|
||||
|
||||
/* There is no way to know the real size of the most recent
|
||||
(right-most) RBS so we'll just assume it to occupy half the
|
||||
address space. That allows us to have a notion of "above" and
|
||||
"below" even with the wrap-around nature of addressing. */
|
||||
c->rbs_area[0].end = bspstore;
|
||||
c->rbs_area[0].size = ~(unw_word_t) 0; /* initial guess... */
|
||||
c->rbs_area[0].size = ((unw_word_t) 1) << 63; /* initial guess... */
|
||||
c->rbs_area[0].rnat_loc = IA64_REG_LOC (c, UNW_IA64_AR_RNAT);
|
||||
debug (10, "%s: initial rbs-area: [?-0x%lx), rnat@0x%lx\n", __FUNCTION__,
|
||||
(long) c->rbs_area[0].end, (long) c->rbs_area[0].rnat_loc);
|
||||
|
|
Loading…
Reference in a new issue