Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-06-28 12:47:41 -0400
committerEugene Tarassov2013-06-28 12:47:41 -0400
commit599ca0daa6b1c7e5524c814c94f3f7ea795ffb66 (patch)
treeeb9a4079967b49085e7aa8de0995af235d00df45 /agent/tcf/services/stacktrace.c
parent1a4aee9f6d0e4e219a0e4e772e7db5f4cc4137b6 (diff)
downloadorg.eclipse.tcf.agent-599ca0daa6b1c7e5524c814c94f3f7ea795ffb66.tar.gz
org.eclipse.tcf.agent-599ca0daa6b1c7e5524c814c94f3f7ea795ffb66.tar.xz
org.eclipse.tcf.agent-599ca0daa6b1c7e5524c814c94f3f7ea795ffb66.zip
Bug 411758 - Stacktrace service does not report 'Level' property anymore
Diffstat (limited to 'agent/tcf/services/stacktrace.c')
-rw-r--r--agent/tcf/services/stacktrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/tcf/services/stacktrace.c b/agent/tcf/services/stacktrace.c
index 7d3a05b6..095aac86 100644
--- a/agent/tcf/services/stacktrace.c
+++ b/agent/tcf/services/stacktrace.c
@@ -105,6 +105,7 @@ int get_next_stack_frame(StackFrame * frame, StackFrame * down) {
}
static void add_frame(StackTrace * stack, StackFrame * frame) {
+ frame->frame = stack->frame_cnt;
if (stack->frame_cnt >= stack->frame_max) {
stack->frame_max += 32;
stack->frames = (StackFrame *)loc_realloc(stack->frames,
@@ -171,6 +172,7 @@ static int trace_stack(Context * ctx, StackTrace * stack, int max_frames) {
}
trace(LOG_STACK, " cfa %16"PRIX64, (uint64_t)frame->fp);
if (!down.has_reg_data) {
+ stack->complete = 1;
loc_free(down.regs);
break;
}
@@ -569,7 +571,6 @@ int get_frame_info(Context * ctx, int frame, StackFrame ** info) {
}
*info = stack->frames + frame;
- (*info)->frame = frame;
return 0;
}

Back to the top