summaryrefslogtreecommitdiffstats
path: root/mapinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'mapinfo.h')
-rw-r--r--mapinfo.h16
1 files changed, 16 insertions, 0 deletions
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