blob: 80bca2bbb866b945df8c6cd0135344caf0d398f7 [file] [log] [blame]
Jeff Brown501edd22011-10-19 20:35:35 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/* Architecture dependent functions. */
18
19#ifndef _CORKSCREW_BACKTRACE_ARCH_H
20#define _CORKSCREW_BACKTRACE_ARCH_H
21
22#include "ptrace-arch.h"
23#include <corkscrew/backtrace.h>
24
25#include <signal.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31ssize_t unwind_backtrace_signal_arch(siginfo_t* siginfo, void* sigcontext,
32 backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth);
33
34ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context,
35 backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif // _CORKSCREW_BACKTRACE_ARCH_H