From 6b657472331ddb2cf5286167ff2460047a321be7 Mon Sep 17 00:00:00 2001 From: Mike Dodd Date: Wed, 14 Jul 2010 11:28:29 -0700 Subject: 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 --- debuggerd/debuggerd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debuggerd') diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c index e850a2e6..7c363677 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) { -- cgit v1.2.3