-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpistacktrace.h
More file actions
34 lines (28 loc) · 793 Bytes
/
pistacktrace.h
File metadata and controls
34 lines (28 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
*
* pistacktrace.h
*
* Author: Markku Rossi <[email protected]>
*
* Copyright (c) 2003 Markku Rossi.
*
* See the LICENSE file for the details on licensing.
*
* What is this file for?
*
*/
#ifndef PISTACKTRACE_H
#define PISTACKTRACE_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/***************************** Public functions *****************************/
/* Take a stack trace of the current call stack and store it into
`stack_trace'. The argument The `stack_trace_depth' tells how many
program counter values fit into the `stack_trace' array. The
function returns the actual call stack depth. */
PiUInt32 pi_stack_trace_set(void **stack_trace, PiUInt32 stack_trace_depth);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* not PISTACKTRACE_H */