summaryrefslogtreecommitdiff
path: root/lib/unwarminder/backtrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unwarminder/backtrace.h')
-rw-r--r--lib/unwarminder/backtrace.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/unwarminder/backtrace.h b/lib/unwarminder/backtrace.h
new file mode 100644
index 0000000000..3bf3eb5aac
--- /dev/null
+++ b/lib/unwarminder/backtrace.h
@@ -0,0 +1,57 @@
1/***************************************************************************
2 * ARM Stack Unwinder, Michael.McTernan.2001@cs.bris.ac.uk
3 *
4 * This program is PUBLIC DOMAIN.
5 * This means that there is no copyright and anyone is able to take a copy
6 * for free and use it as they wish, with or without modifications, and in
7 * any context, commercially or otherwise. The only limitation is that I
8 * don't guarantee that the software is fit for any purpose or accept any
9 * liability for it's use or misuse - this software is without warranty.
10 ***************************************************************************
11 * File Description: Unwinder client that reads local memory.
12 **************************************************************************/
13
14#ifndef CLIENT_H
15#define CLIENT_H
16
17/***************************************************************************
18 * Nested Includes
19 ***************************************************************************/
20#include "config.h"
21#include "system.h"
22#include "lcd.h"
23
24#include <stdio.h>
25#include "unwarminder.h"
26#include "get_sp.h"
27#include "gcc_extensions.h"
28
29#if defined(SIM_CLIENT)
30#error This file is not for the simulated unwinder client
31#endif
32
33/***************************************************************************
34 * Typedefs
35 ***************************************************************************/
36
37/** Example structure for holding unwind results.
38 */
39typedef struct
40{
41 Int16 frameCount;
42 Int32 address[32];
43}
44CliStack;
45
46/***************************************************************************
47 * Variables
48 ***************************************************************************/
49
50extern const UnwindCallbacks cliCallbacks;
51
52void backtrace(int pcAddr, int spAddr, unsigned *line);
53
54#endif
55
56
57/* END OF FILE */