aboutsummaryrefslogtreecommitdiffstats
path: root/debuggerd/debuggerd.c
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-12-13 11:37:40 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-12-13 11:37:40 -0800
commit44659e90fe8df25c71195936eabe0cc9158c18a6 (patch)
treea02c57906a4bdaf708631f369ad4ba2b1c742048 /debuggerd/debuggerd.c
parent144773f9e1371a8d4b848c3136b931d5d0687b38 (diff)
parentd3f59eab07d102b9506978aca9541dd62dcea919 (diff)
downloadsystem_core-44659e90fe8df25c71195936eabe0cc9158c18a6.tar.gz
system_core-44659e90fe8df25c71195936eabe0cc9158c18a6.tar.bz2
system_core-44659e90fe8df25c71195936eabe0cc9158c18a6.zip
am d3f59eab: Merge "debuggerd: IA version"
* commit 'd3f59eab07d102b9506978aca9541dd62dcea919': debuggerd: IA version
Diffstat (limited to 'debuggerd/debuggerd.c')
-rw-r--r--debuggerd/debuggerd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c
index 374a9a5e..ecfe01f5 100644
--- a/debuggerd/debuggerd.c
+++ b/debuggerd/debuggerd.c
@@ -286,6 +286,13 @@ void dump_crash_report(int tfd, unsigned pid, unsigned tid, bool at_fault)
}
dump_stack_and_code(tfd, tid, milist, stack_depth, sp_list, at_fault);
+#elif __i386__
+ /* If stack unwinder fails, use the default solution to dump the stack
+ * content.
+ */
+ stack_depth = unwind_backtrace_with_ptrace_x86(tfd, tid, milist,at_fault);
+#else
+#error "Unsupported architecture"
#endif
while(milist) {