TCF Agent: fix the build with symbol support disabled
Change-Id: I158e7b396505408311f2fd577ccff04aefc96dd4
Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
diff --git a/agent/tcf/services/stacktrace.c b/agent/tcf/services/stacktrace.c
index 687898f..eaf754e 100644
--- a/agent/tcf/services/stacktrace.c
+++ b/agent/tcf/services/stacktrace.c
@@ -78,6 +78,7 @@
errno = error;
}
+#if ENABLE_Symbols
static int get_frame_debug_info(StackFrame * frame, StackTracingInfo ** info) {
uint64_t ip = 0;
Context * ctx = frame->ctx;
@@ -97,7 +98,6 @@
if (up->is_walked) {
ip--;
}
-#if ENABLE_Symbols
else {
/* Workaround for missing frame info for return address of a function that never returns */
Symbol * sym = NULL;
@@ -112,11 +112,11 @@
ip--;
}
}
-#endif
}
}
return get_stack_tracing_info(ctx, (ContextAddress)ip, info);
}
+#endif
int get_next_stack_frame(StackFrame * frame, StackFrame * down) {
#if ENABLE_Symbols