summaryrefslogtreecommitdiffstats
path: root/package/gdb/7.12.1
Commit message (Collapse)AuthorAgeFilesLines
* package/gdb: fix gdbserver build for m68kRomain Naour2018-06-231-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As for strace [1], when <sys/reg.h> is included after <linux/ptrace.h>, the build fails on m68k with the following diagnostics: In file included from ./../nat/linux-ptrace.h:28:0, from linux-low.h:27, from linux-m68k-low.c:20: [...]/usr/include/sys/reg.h:26:3: error: expected identifier before numeric constant PT_D1 = 0, ^ [...]usr/include/sys/reg.h:26:3: error: expected « } » before numeric constant [...]usr/include/sys/reg.h:26:3: error: expected unqualified-id before numeric constant In file included from linux-m68k-low.c:27:0: [...]usr/include/sys/reg.h:99:1: error: expected declaration before « } » token }; ^ Fix this by moving <sys/reg.h> on top of "linux-low.h". Fixes: https://gitlab.com/free-electrons/toolchains-builder/-/jobs/72006385 [1] https://github.com/strace/strace/commit/6ebf6c4f9e5ebca123a5b5f24afe67cf0473cf92 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: add fix for gdb 7.12 and gdb 8.0 build on noMMU platformsThomas Petazzoni2017-08-101-0/+41
| | | | | | | | | | | | | | | | | | | This adds a patch to gdb 7.12 and gdb 8.x, which fixes the build on noMMU platforms. It is not needed for older versions of gdb, since it's related to the switch of gdb to C++ in the 7.12 release. Fixes: ../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))': ../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive] child_stack = xmalloc (STACK_SIZE * 4); The patch has already been merged upstream, as of commit ffce45d2243e5f52f411e314fc4e1a69f431a81f, and will therefore be part of future gdb releases. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* gdb: fix full gdb build for MIPS muslVicente Olivert Riera2017-06-191-0/+40
| | | | | | | | | | | | | | | | Currently building full gdb for MIPS musl fails because it's trying to include <sgidefs.h> which is provided by glibc and uClibc, but not by musl. However, the kernel headers provide <asm/sgidefs.h> which has the same definitions, so we can use that one instead. Backporting a patch that has been sent upstream. Taken from here: https://sourceware.org/bugzilla/show_bug.cgi?id=21070 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: fix build of gdbserver on m68k/coldfireThomas Petazzoni2017-06-111-0/+32
| | | | | | | | | | | | | | | | | | | | | | | 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
* gdb: add patches to fix musl build on ppc(64)(le) and shThomas Petazzoni2017-06-112-0/+94
| | | | | | | | | | | | | | | | | | | This commit small patches to gdb that fix redefined structures build problems that occur when building on PowerPC, PowerPC64, PowerPC64le and SuperH with the musl C library. The PowerPC(64)(le) patch was taken from the Yocto Project, the SuperH patch was inspired from the PowerPC patch. The issue has also been reported upstream to the musl developers: http://www.openwall.com/lists/musl/2017/06/03/1 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Changes since v2: - None Changes since v1: - None
* package/gdb: fix gdb-7.12.1 build on xtensaMax Filippov2017-03-281-0/+39
This fixes the following gdb-7.12.1 build error on xtensa architecture: gdb/xtensa-linux-nat.c: In function 'void fetch_gregs(regcache*, ptid_t, int)': gdb/xtensa-linux-nat.c:178:23: error: uninitialized const 'regs' [-fpermissive] const gdb_gregset_t regs; Backported from: d274ecf4ddf76768af57e27f654b9ce6784b391c Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud