From 77821808ab8e77617e8817018fa8f74979fe5d84 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Fri, 21 Feb 2003 07:36:26 +0000 Subject: [PATCH] (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) --- src/ia64/Gstep-ia64.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ia64/Gstep-ia64.c b/src/ia64/Gstep-ia64.c index a7ff7108..4915d37c 100644 --- a/src/ia64/Gstep-ia64.c +++ b/src/ia64/Gstep-ia64.c @@ -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);