diff options
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 0000000..01736bd --- /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); + |