diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-11-16 03:27:05 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-11-16 03:27:05 +0000 |
commit | a1f2ce7d60f83533a8429073b3d00f8b753fdb40 (patch) | |
tree | a55f55b08aa3130c05564599566248d260674076 /gdb | |
parent | 572e7c1b6156801513a64c39daa23d965593ebad (diff) | |
download | gdb-a1f2ce7d60f83533a8429073b3d00f8b753fdb40.zip gdb-a1f2ce7d60f83533a8429073b3d00f8b753fdb40.tar.gz gdb-a1f2ce7d60f83533a8429073b3d00f8b753fdb40.tar.bz2 |
gdbserver: fix warning in nommu clone
Building gdbserver for nommu targets atm fails with:
linux-low.c: In function 'linux_tracefork_child':
linux-low.c:4151: error: pointer of type 'void *' used in arithmetic
So cast the void* to a char*.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index cbee17c..656506c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2010-11-16 Mike Frysinger <vapier@gentoo.org> + + * linux-low.c (linux_tracefork_child): Add char* cast to arg. + 2010-10-22 Jie Zhang <jie@codesourcery.com> * Makefile.in: Add FLAGS_TO_PASS variable. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index b798c16..c65ce54 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4148,7 +4148,7 @@ linux_tracefork_child (void *arg) __clone2 (linux_tracefork_grandchild, arg, STACK_SIZE, CLONE_VM | SIGCHLD, NULL); #else - clone (linux_tracefork_grandchild, arg + STACK_SIZE, + clone (linux_tracefork_grandchild, (char *) arg + STACK_SIZE, CLONE_VM | SIGCHLD, NULL); #endif |