diff options
author | Bruce Beare <bruce.j.beare@intel.com> | 2010-10-13 16:11:15 -0700 |
---|---|---|
committer | Bruce Beare <bruce.j.beare@intel.com> | 2010-11-29 11:28:11 -0800 |
commit | 6cc492308712613cd23bee9240b1757428841a2f (patch) | |
tree | f56f88008f920abb91942a1045625a9e346227b5 /debuggerd/utility.c | |
parent | 849249064cae9c1bb23b0204b5d35b832567801e (diff) | |
download | system_core-6cc492308712613cd23bee9240b1757428841a2f.tar.gz system_core-6cc492308712613cd23bee9240b1757428841a2f.tar.bz2 system_core-6cc492308712613cd23bee9240b1757428841a2f.zip |
debuggerd: IA version
Change-Id: I0c0d9c2d7e476b8d117aaf505a9480a47c0b5c05
Signed-off-by: Lei Li <lei.l.li@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Diffstat (limited to 'debuggerd/utility.c')
-rw-r--r-- | debuggerd/utility.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debuggerd/utility.c b/debuggerd/utility.c index a9cbef79..2afdb46f 100644 --- a/debuggerd/utility.c +++ b/debuggerd/utility.c @@ -69,11 +69,12 @@ const char *map_to_name(mapinfo *mi, unsigned pc, const char* def) /* Find the containing map info for the pc */ const mapinfo *pc_to_mapinfo(mapinfo *mi, unsigned pc, unsigned *rel_pc) { + *rel_pc = pc; while(mi) { if((pc >= mi->start) && (pc < mi->end)){ // Only calculate the relative offset for shared libraries if (strstr(mi->name, ".so")) { - *rel_pc = pc - mi->start; + *rel_pc -= mi->start; } return mi; } |