aboutsummaryrefslogtreecommitdiffstats
path: root/debuggerd/utility.c
diff options
context:
space:
mode:
authorBruce Beare <bruce.j.beare@intel.com>2010-10-13 14:21:30 -0700
committerBruce Beare <bruce.j.beare@intel.com>2010-11-29 11:03:48 -0800
commit849249064cae9c1bb23b0204b5d35b832567801e (patch)
tree46945159307ad0c7252aab2f986ae310c261ee0a /debuggerd/utility.c
parent1a15cb7e904a562b0120039816fce5b8e6d5b147 (diff)
downloadsystem_core-849249064cae9c1bb23b0204b5d35b832567801e.tar.gz
system_core-849249064cae9c1bb23b0204b5d35b832567801e.tar.bz2
system_core-849249064cae9c1bb23b0204b5d35b832567801e.zip
debuggerd: Reorganize to facilitate IA commit
Change-Id: I22dd02daf617672fc0a8ba7e396017c57f17e26e Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Diffstat (limited to 'debuggerd/utility.c')
-rw-r--r--debuggerd/utility.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debuggerd/utility.c b/debuggerd/utility.c
index 8f3931c1..a9cbef79 100644
--- a/debuggerd/utility.c
+++ b/debuggerd/utility.c
@@ -38,14 +38,14 @@ void get_remote_struct(int pid, void *src, void *dst, size_t size)
unsigned int i;
for (i = 0; i+4 <= size; i+=4) {
- *(int *)(dst+i) = ptrace(PTRACE_PEEKTEXT, pid, src+i, NULL);
+ *(int *)((char *)dst+i) = ptrace(PTRACE_PEEKTEXT, pid, (char *)src+i, NULL);
}
if (i < size) {
int val;
assert((size - i) < 4);
- val = ptrace(PTRACE_PEEKTEXT, pid, src+i, NULL);
+ val = ptrace(PTRACE_PEEKTEXT, pid, (char *)src+i, NULL);
while (i < size) {
((unsigned char *)dst)[i] = val & 0xff;
i++;