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