blob: 25adeb4f78eb239ebd6aebd380fab9844f5d402a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef MAPINFO_H
#define MAPINFO_H
typedef struct mapinfo {
struct mapinfo *next;
unsigned start;
unsigned end;
char name[];
} mapinfo;
mapinfo *init_mapinfo(int pid);
void deinit_mapinfo(mapinfo *mi);
const char *map_to_name(mapinfo *mi, unsigned pc, const char* def);
const mapinfo *pc_to_mapinfo(mapinfo *mi, unsigned pc, unsigned *rel_pc);
#endif
|