diff options
author | Iliyan Malchev <malchev@google.com> | 2011-08-08 11:24:41 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-08 11:46:17 -0700 |
commit | c322989ae6ff6769490828de1b5eda12b749cce9 (patch) | |
tree | cfd1494d18791389b1a743242085f128e8a030fd /mapinfo.h | |
parent | 8558b0909d3f42288f488e6fd1341877c639a594 (diff) | |
download | android_hardware_ti_omap4xxx-c322989ae6ff6769490828de1b5eda12b749cce9.tar.gz android_hardware_ti_omap4xxx-c322989ae6ff6769490828de1b5eda12b749cce9.tar.bz2 android_hardware_ti_omap4xxx-c322989ae6ff6769490828de1b5eda12b749cce9.zip |
initial commit
Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'mapinfo.h')
-rw-r--r-- | mapinfo.h | 16 |
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 |