From c322989ae6ff6769490828de1b5eda12b749cce9 Mon Sep 17 00:00:00 2001 From: Iliyan Malchev Date: Mon, 8 Aug 2011 11:24:41 -0700 Subject: initial commit Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e Signed-off-by: Iliyan Malchev --- mapinfo.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mapinfo.h (limited to 'mapinfo.h') diff --git a/mapinfo.h b/mapinfo.h new file mode 100644 index 0000000..25adeb4 --- /dev/null +++ b/mapinfo.h @@ -0,0 +1,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 -- cgit v1.1