1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-17 13:47:37 +01:00

(check_rbs_switch): Mark it as "inline". Make rbs_record_switch() the last call.

(update_frame_state): Remove conditional call to rbs_underflow().

(Logical change 1.52)
This commit is contained in:
mostang.com!davidm 2003-02-21 07:36:26 +00:00
parent 4d5c375d34
commit 77821808ab

View file

@ -27,7 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "rse.h"
#include "unwind_i.h"
static int
static inline int
check_rbs_switch (struct cursor *c)
{
unw_word_t saved_bsp, saved_bspstore, loadrs, ndirty;
@ -67,10 +67,10 @@ check_rbs_switch (struct cursor *c)
saved_bspstore = ia64_rse_skip_regs (saved_bsp, -ndirty);
}
if (saved_bsp != c->bsp)
ret = rbs_record_switch (c, saved_bsp, saved_bspstore, c->rnat_loc);
if (saved_bsp == c->bsp)
return 0;
return ret;
return rbs_switch (c, saved_bsp, saved_bspstore, c->rnat_loc);
}
static inline int
@ -128,8 +128,6 @@ update_frame_state (struct cursor *c)
}
c->bsp = ia64_rse_skip_regs (c->bsp, -num_regs);
if (c->rbs_area[c->rbs_curr].end - c->bsp > c->rbs_area[c->rbs_curr].size)
rbs_underflow (c);
/* update the IP cache: */
ret = ia64_get (c, c->ip_loc, &ip);