summaryrefslogtreecommitdiffstats
path: root/lib/unwarminder/backtrace.h
blob: 3bf3eb5aac65ac9a00eca527cd09285c190a673a (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/***************************************************************************
 * ARM Stack Unwinder, Michael.McTernan.2001@cs.bris.ac.uk
 *
 * This program is PUBLIC DOMAIN.
 * This means that there is no copyright and anyone is able to take a copy
 * for free and use it as they wish, with or without modifications, and in
 * any context, commercially or otherwise. The only limitation is that I
 * don't guarantee that the software is fit for any purpose or accept any
 * liability for it's use or misuse - this software is without warranty.
 ***************************************************************************
 * File Description:  Unwinder client that reads local memory.
 **************************************************************************/

#ifndef CLIENT_H
#define CLIENT_H

/***************************************************************************
 * Nested Includes
 ***************************************************************************/
#include "config.h"
#include "system.h"
#include "lcd.h"

#include <stdio.h>
#include "unwarminder.h"
#include "get_sp.h"
#include "gcc_extensions.h"

#if defined(SIM_CLIENT)
#error This file is not for the simulated unwinder client
#endif

/***************************************************************************
 * Typedefs
 ***************************************************************************/

/** Example structure for holding unwind results.
 */
typedef struct
{
    Int16 frameCount;
    Int32 address[32];
}
CliStack;

/***************************************************************************
 * Variables
 ***************************************************************************/

extern const UnwindCallbacks cliCallbacks;

void backtrace(int pcAddr, int spAddr, unsigned *line);

#endif


/* END OF FILE */