-
Notifications
You must be signed in to change notification settings - Fork 1
/
dwarfclient.h
38 lines (28 loc) · 884 Bytes
/
dwarfclient.h
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
#define false 0
#define true 1
#include <libdwarf.h>
typedef struct _DC_location{
int isFrameOffset;
long offset;
} DC_location;
typedef struct _DC_type{
unsigned indirectionLevel;
unsigned arrayLevel;
char *name;
unsigned long byteSize;
} DC_type;
Dwarf_Debug d;
Dwarf_Error e;
static void DC_resolve_type(Dwarf_Die v,DC_type *t);
unsigned long get_iaddr_of_file_line(const char *file, unsigned line);
void show_scopes_by_file_line(char *fileline_fn, int fileline_ln);
void show_scopes_by_addr(void *addr);
void show_info_for_scoped_variable(void *addr, const char *varname);
long get_location_of_scoped_variable(void *addr, const char *varname);
DC_type *get_type_of_scoped_variable(void *addr, const char *varname);
void show_vars_by_scope_addr(void *addr);
#ifdef DWARF_CLIENT_LIB
int getdwarfdata(char *argv);
#else
int main(int argc, char **argv);
#endif