diff options
| author | Jean-Baptiste Queru <jbq@google.com> | 2010-12-13 11:37:40 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-12-13 11:37:40 -0800 |
| commit | 44659e90fe8df25c71195936eabe0cc9158c18a6 (patch) | |
| tree | a02c57906a4bdaf708631f369ad4ba2b1c742048 /debuggerd/utility.c | |
| parent | 144773f9e1371a8d4b848c3136b931d5d0687b38 (diff) | |
| parent | d3f59eab07d102b9506978aca9541dd62dcea919 (diff) | |
| download | core-44659e90fe8df25c71195936eabe0cc9158c18a6.tar.gz core-44659e90fe8df25c71195936eabe0cc9158c18a6.tar.bz2 core-44659e90fe8df25c71195936eabe0cc9158c18a6.zip | |
am d3f59eab: Merge "debuggerd: IA version"
* commit 'd3f59eab07d102b9506978aca9541dd62dcea919':
debuggerd: IA version
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 a9cbef798..2afdb46f9 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; } |
