gdb: fix build of gdbserver on m68k/coldfire
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 9 Jun 2017 08:21:50 +0000 (10:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Jun 2017 16:00:48 +0000 (18:00 +0200)
commit98d7a9654420ba0e9afe817e13adbda967aa5629
treed522cae33155d13314dcafbec8dc1c3cbe0dd1d9
parentffd28041da86d721a4eca7ced1a48324cb8235e6
gdb: fix build of gdbserver on m68k/coldfire

This commit adds a small patch to gdb that fixes the build of gdbserver
on m68k/coldfire:

../nat/linux-ptrace.c: In function 'linux_fork_to_function':
../nat/linux-ptrace.c:282:19: warning: implicit declaration of function 'clone' [-Wimplicit-function-declaration]
       child_pid = clone (function, child_stack + STACK_SIZE,
                   ^
../nat/linux-ptrace.c:283:5: error: 'CLONE_VM' undeclared (first use in this function)
     CLONE_VM | SIGCHLD, child_stack + STACK_SIZE * 2);
     ^
../nat/linux-ptrace.c:283:5: note: each undeclared identifier is reported only once for each function it appears in

Thanks to Waldemar for pointing out the patch fixing this issue.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Changes since v2:
 - None
Changes since v1:
 - New patch in the series
package/gdb/7.10.1/0010-Fix-gdbserver-build-on-uClibc-noMMU.patch [new file with mode: 0644]
package/gdb/7.11.1/0005-Fix-gdbserver-build-on-uClibc-noMMU.patch [new file with mode: 0644]
package/gdb/7.12.1/0004-Fix-gdbserver-build-on-uClibc-noMMU.patch [new file with mode: 0644]