kumquat-buildroot/package/gdb
Romain Naour 8646a7fae9 package/gdb: fix gdbserver build for m68k
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] 6ebf6c4f9e

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>
2018-06-23 12:52:01 +02:00
..
7.10.1
7.11.1
7.12.1 package/gdb: fix gdbserver build for m68k 2018-06-23 12:52:01 +02:00
8.0.1 package/gdb: fix gdbserver build for m68k 2018-06-23 12:52:01 +02:00
Config.in
Config.in.host toolchain: Bump ARC tools to arc-2018.03-rc2 2018-05-28 14:48:19 +02:00
gdb-python-config
gdb.hash toolchain: Bump ARC tools to arc-2018.03-rc2 2018-05-28 14:48:19 +02:00
gdb.mk