diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2010-12-13 11:14:26 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-12-13 11:14:26 -0800 |
| commit | 144773f9e1371a8d4b848c3136b931d5d0687b38 (patch) | |
| tree | 188ed6037ec22959169789b95f3117c5e409550f /debuggerd/debuggerd.h | |
| parent | 8f461e5cc2972ed5054469b92bc841c07a50b7cf (diff) | |
| parent | e382cc999e48b3faabea7743ec8cec303b6005ba (diff) | |
| download | system_core-144773f9e1371a8d4b848c3136b931d5d0687b38.tar.gz system_core-144773f9e1371a8d4b848c3136b931d5d0687b38.tar.bz2 system_core-144773f9e1371a8d4b848c3136b931d5d0687b38.zip | |
am e382cc99: Merge "debuggerd: Reorganize to facilitate IA commit"
* commit 'e382cc999e48b3faabea7743ec8cec303b6005ba':
debuggerd: Reorganize to facilitate IA commit
Diffstat (limited to 'debuggerd/debuggerd.h')
| -rw-r--r-- | debuggerd/debuggerd.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debuggerd/debuggerd.h b/debuggerd/debuggerd.h new file mode 100644 index 00000000..01736bdd --- /dev/null +++ b/debuggerd/debuggerd.h @@ -0,0 +1,40 @@ +/* system/debuggerd/debuggerd.h +** +** Copyright 2006, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ + +#include <cutils/logd.h> +#include <sys/ptrace.h> +#include <unwind.h> +#include "utility.h" +#include "symbol_table.h" + + +/* Main entry point to get the backtrace from the crashing process */ +extern int unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map, + unsigned int sp_list[], + int *frame0_pc_sane, + bool at_fault); + +extern void dump_registers(int tfd, int pid, bool at_fault); + +extern int unwind_backtrace_with_ptrace_x86(int tfd, pid_t pid, mapinfo *map, bool at_fault); + +void dump_pc_and_lr(int tfd, int pid, mapinfo *map, int unwound_level, bool at_fault); + +void dump_stack_and_code(int tfd, int pid, mapinfo *map, + int unwind_depth, unsigned int sp_list[], + bool at_fault); + |
