diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-12-13 12:32:04 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-12-13 12:32:04 -0800 |
commit | abf7378f1ebc9012701e84b0796397b0ba630f95 (patch) | |
tree | 1b0a1db24970df2c1b1fb4e5f456f2d63b5df240 /debuggerd/debuggerd.c | |
parent | 5599029c8dacd2c3dc348ac903b35dfa76a93bf0 (diff) | |
parent | 44659e90fe8df25c71195936eabe0cc9158c18a6 (diff) | |
download | system_core-abf7378f1ebc9012701e84b0796397b0ba630f95.zip system_core-abf7378f1ebc9012701e84b0796397b0ba630f95.tar.gz system_core-abf7378f1ebc9012701e84b0796397b0ba630f95.tar.bz2 |
am 44659e90: am d3f59eab: Merge "debuggerd: IA version"
* commit '44659e90fe8df25c71195936eabe0cc9158c18a6':
debuggerd: IA version
Diffstat (limited to 'debuggerd/debuggerd.c')
-rw-r--r-- | debuggerd/debuggerd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c index ab1e489..5fa4442 100644 --- a/debuggerd/debuggerd.c +++ b/debuggerd/debuggerd.c @@ -355,6 +355,13 @@ void dump_crash_report(int tfd, unsigned pid, unsigned tid, bool at_fault) dump_randomization_base(tfd, 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) { |