summaryrefslogtreecommitdiff
path: root/libubacktrace/backtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libubacktrace/backtrace.c')
-rw-r--r--libubacktrace/backtrace.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libubacktrace/backtrace.c b/libubacktrace/backtrace.c
new file mode 100644
index 000000000..872180028
--- /dev/null
+++ b/libubacktrace/backtrace.c
@@ -0,0 +1,19 @@
+/*
+ * Perform stack unwinding by using the _Unwind_Backtrace.
+ *
+ * User application that wants to use backtrace needs to be
+ * compiled with -fexceptions option and -rdynamic to get full
+ * symbols printed.
+
+ * Copyright (C) 2010 STMicroelectronics Ltd
+ * Author(s): Carmelo Amoroso <carmelo.amoroso@st.com>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ */
+#error "Arch specific implementation must be provided to properly work"
+int backtrace (void **array, int size)
+{
+ return -1;
+}
+