Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-05-04 16:54:57 -0400
committerEugene Tarassov2013-05-04 16:54:57 -0400
commit2f885da4313e065776c55ed186fa4327e3fb8be2 (patch)
treeb20166662e86e110b05d30a7b7e148cb8fb7c23f
parent1e5001dc2868309ee4347dfdc495aa78e9ba6355 (diff)
downloadorg.eclipse.tcf.agent-2f885da4313e065776c55ed186fa4327e3fb8be2.tar.gz
org.eclipse.tcf.agent-2f885da4313e065776c55ed186fa4327e3fb8be2.tar.xz
org.eclipse.tcf.agent-2f885da4313e065776c55ed186fa4327e3fb8be2.zip
TCF Agent: a bit better (more efficient) implementation of RM_STEP_OUT
-rw-r--r--agent/tcf/services/runctrl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/tcf/services/runctrl.c b/agent/tcf/services/runctrl.c
index cd5500fa..27bd67ed 100644
--- a/agent/tcf/services/runctrl.c
+++ b/agent/tcf/services/runctrl.c
@@ -1405,9 +1405,11 @@ static int update_step_machine_state(Context * ctx) {
return -1;
}
if (get_frame_info(ctx, p, &info) < 0) return -1;
- if (read_reg_value(info, get_PC_definition(ctx), &ip) < 0) break;
+ if (read_reg_value(info, get_PC_definition(ctx), &ip) < 0) return -1;
ext->step_frame_fp = info->fp;
ext->step_frame_ip = (ContextAddress)ip;
+ step_bp_addr = (ContextAddress)ip;
+ break;
}
for (;;) {
uint64_t ip = 0;

Back to the top