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