aboutsummaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorMike Dodd <mdodd@google.com>2010-07-14 11:28:29 -0700
committerMike Dodd <mdodd@google.com>2010-07-14 11:28:29 -0700
commit6b657472331ddb2cf5286167ff2460047a321be7 (patch)
tree9ee378ee183c7bac15f8ae9fe6f26ce3384cf0c5 /debuggerd
parent2124afeee1f19423e71c52ede6f4926f5389e917 (diff)
downloadsystem_core-6b657472331ddb2cf5286167ff2460047a321be7.zip
system_core-6b657472331ddb2cf5286167ff2460047a321be7.tar.gz
system_core-6b657472331ddb2cf5286167ff2460047a321be7.tar.bz2
Fix bug in debuggerd so it can successfully find the exidx section in
libraries. This should fix the bug where the exception stack wasn't being printed past the PC. Change-Id: Ia69ebd49606ee34e329ba43c07b325660248e8fa
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/debuggerd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c
index e850a2e..7c36367 100644
--- a/debuggerd/debuggerd.c
+++ b/debuggerd/debuggerd.c
@@ -374,7 +374,7 @@ static void parse_exidx_info(mapinfo *milist, pid_t pid)
ptr = (Elf32_Phdr *) (mi->start + ehdr.e_phoff);
for (i = 0; i < ehdr.e_phnum; i++) {
/* Parse the program header */
- get_remote_struct(pid, (char *) ptr+i, &phdr,
+ get_remote_struct(pid, (char *) (ptr+i), &phdr,
sizeof(Elf32_Phdr));
/* Found a EXIDX segment? */
if (phdr.p_type == PT_ARM_EXIDX) {