summaryrefslogtreecommitdiffstats
path: root/package/gdb
Commit message (Collapse)AuthorAgeFilesLines
* package/gdb: disable inprocess-agent in static buildFabrice Fontaine2019-02-221-0/+5
| | | | | | | | Fixes: - http://autobuild.buildroot.org/results/b40bdbca6669a81301fca523e982dbc9584a4e65 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: bump to version 8.2.1Romain Naour2018-12-268-181/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | GDB 8.2.1 brings the following fixes and enhancements over GDB 8.2: * PR build/23516 (gdb build error under msys+mingw: strip can't handle gdb-add-index.exe) * PR build/23623 (install-strip fails) * PR rust/23626 (gdb crashes in upstream rust nil-enum test) * PR rust/23650 (rust field name access error mentions "foo") * PR gdb/23663 (gdb 8.1.1: undefined rpl_stat function with musl toolchains) * PR python/23669 (gdb.execute("show commands") doesn't work) * PR python/23714 (Command repetition stops working after gdb.execute) * PR gdb/23838 (8.2 regression for invalid -data-directory) * PR gdb/23974 ("info os" crash when specifying invalid object) * PR gdb/23999 (SYMBOL_LANGUAGE assertion failure on AIX) * PR gdb/24003 (Error when binary searching CUs for a specific DIE when using DWZ) Remove upstream patch: 0006-Move-is_regular_file-from-common-utils.c-to-filestuf.patch https://github.com/bminor/binutils-gdb/commit/5de69bdbd0bbd7941b4cd93d4571f5e22cdb28be See: https://sourceware.org/ml/gdb-announce/2018/msg00004.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: fix compilation for arc-2018.09 in some casesAlexey Brodkin2018-12-101-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases which seem to depend on how toolchain headers got installed or configured we may face well-known by now failure fixed in upstream with [1]: ------------------------------>8---------------------------- In file included from nat/linux-ptrace.c:20: nat/linux-ptrace.h:175:22: error: expected identifier before numeric constant # define TRAP_HWBKPT 4 ^ nat/linux-ptrace.h:175:22: error: expected '}' before numeric constant In file included from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/signal.h:58, from build-gnulib/import/signal.h:52, from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/sys/wait.h:36, from ./common/gdb_wait.h:23, from nat/linux-ptrace.c:24: .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/bits/siginfo-consts.h:156:1: note: to match this '{' { ^ In file included from nat/linux-ptrace.c:20: nat/linux-ptrace.h:175:22: error: expected unqualified-id before numeric constant # define TRAP_HWBKPT 4 ^ In file included from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/features.h:428, from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/bits/libc-header-start.h:33, from .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/stdio.h:27, from build-gnulib/import/stdio.h:43, from ./common/common-defs.h:52, from nat/linux-ptrace.c:19: .../output/host/arc-buildroot-linux-gnu/sysroot/usr/include/sys/wait.h:158:1: error: expected declaration before '}' token __END_DECLS ^~~~~~~~~~~ ------------------------------>8---------------------------- Back-porting the fix for ARC now to get predictably successful results. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=5a6c3296a7a90694ad4042f6256f3da6d4fa4ee8 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* toolchain: fix URLs for ARC gcc/binutils/gdbEvgeniy Didin2018-12-062-2/+2
| | | | | | | | | | | | | | In commit cd9d58f1fc285bcc09f1e0e29ee300a8a9053053 ("toolchain: bumb ARC tools to arc-2018.09 release"), the ARC-specific binutils, gcc and gdb versions were updated to use the 2018.09 release. However, they are mistakenly pointing to a branch rather than a tag. This commit fixes that by using the proper release tag. Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com [Thomas: rework commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* Merge branch 'next'Peter Korsgaard2018-12-022-2/+2
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * toolchain: bumb ARC tools to arc-2018.09 releaseEvgeniy Didin2018-11-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit finally bumps ARC tools to the most recent arc-2018.09 release version. ARC GNU tools of version arc-2018.09 bring some quite significant changes like: * Binutils v2.31.1 with additional ARC patches * GCC 8.2.1 with additional ARC patches * glibc 2.28 with additional ARC patches More information on this release could be found here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2018.09-release Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
| * toolchain: Bump ARC tools to arc-2018.09-rc2Evgeniy Didin2018-11-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit bumps ARC toolchain to arc-2018.09-rc2, which includes significant changes since arc-2018.09-rc1. We want to test how new toolchain-rc2 builds packages, so we can make fixes before release of toolcain. This makes us closer to toolchain release which will be in a few weeks. Please note that it is a release candidate and it might contain some breakages, please don't use it for production builds. Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * toolchain: Bump ARC tools to arc-2018.09-rc1Evgeniy Didin2018-11-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit bumps ARC toolchain to arc-2018.09-rc1. We want to test how new toolchain-rc1 builds packages, so we can make fixes before release of toolcain. ARC GNU tools of version arc-2018.09-rc1 bring some quite significant changes like: * Binutils v2.31.1 with additional ARC patches * GCC 8.2.1 with additional ARC patches * glibc 2.28 with additional ARC patches Please note that it is a release candidate and it might contain some breakages, please don't use it for production builds. Signed-off-by: Evgeniy Didin <didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | package/gdb: prevent gdbserver being selected for RISC-V buildsMark Corbin2018-11-292-0/+4
|/ | | | | | | | | | | | | | There is currently no version of gdbserver for RISC-V. Until this is implemented we will prevent both the direct and indirect selection of gdbserver for RISC-V builds. In practice this means that 'cross gdb for the host' cannot be selected and that 'full debugger' must be automatically selected for the gdb target package. [Peter: simplify logic, add comment] Signed-off-by: Mark Corbin <mark.corbin@embecosm.com> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: switch to 8.1 as the default versionRomain Naour2018-09-161-3/+3
| | | | | | | | 8.2 is around, 8.1 has already seen a point release, so it's time to make 8.1 the default version for gdb. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: bump to version 8.2Romain Naour2018-09-168-0/+438
| | | | | | | | | Rebase existing patches on gdb 8.2. https://sourceware.org/ml/gdb-announce/2018/msg00003.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: add patch fixing gnulib related issue with musl toolchainsRomain Naour2018-09-141-0/+172
| | | | | | | | | | | | | | | Backport the upstream patch fixing the gdb build with musl toolchains. Only gdb 8.1.1 [1] and 8.2 [2] release are affected. Fixes: https://gitlab.com/free-electrons/toolchains-builder/-/jobs/95552308 [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=2441702a72f324e41a1624dc042b334f375e2d81 [2] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=25e3c82c0e927398e759e2d5e35623012b8683f7 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: move patch directoryRomain Naour2018-09-105-0/+0
| | | | | | | | | | commit 9cf4964da56863dfe4ce729c32400bd9acf25ee7 forgot to move patch directory. Fixes: https://gitlab.com/free-electrons/toolchains-builder/-/jobs/95552306 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: bump to version 8.1.1Romain Naour2018-08-052-2/+2
| | | | | | | https://sourceware.org/ml/gdb-announce/2018/msg00002.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: remove gdb 7.11.1 patchesRomain Naour2018-07-045-555/+0
| | | | | | | gdb 7.11.x support was removed since commit bae35c80128fce6b5b4260186f9020308efbce4b Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: remove gdb 7.10.1 patchesRomain Naour2018-07-0410-962/+0
| | | | | | | gdb 7.10.x support was removed since commit 54a2e7a3b72778c9ec26cb184a1dd7a356e514c9 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* gdb: drop duplicate dependenciesThomas Petazzoni2018-06-301-2/+0
| | | | | | | | | | | | | | | Commit 1e3738db42919cb4487f7a64381ac7d3090d0e1f ("package/gdb: rework dependency for C++11") erroneously added duplicate dependencies in package/gdb/Config.in related to gcc 4.8 and C++ dependency. One copy of those dependencies was below the select causing a check-package warning. Fixes: package/gdb/Config.in:28: attributes order: type, default, depends on, select, help (http://nightly.buildroot.org/#_config_files) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* gdb: ARC version is based on GDB 8.0, needs C++11 supportThomas Petazzoni2018-06-251-0/+1
| | | | | | | The special gdb version used for ARC is based on GDB 8.0, so it needs C++11 support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* toolchain: bump ARC tools to arc-2018.03 releaseEvgeniy Didin2018-06-252-2/+2
| | | | | | | | | | | | | | | | | | | This commit finally bumps ARC tools to the most recent arc-2018.03 release version. ARC GNU tools of version arc-2018.03 bring some quite significant changes like: * Binutils v2.29.51 with additional ARC patches * GCC 7.3.1 with additional ARC patches * GDB 8.0.50 with ARC patches More information on this release could be found here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2018.03-release Signed-off-by: Evgeniy Didin <didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* gdb: add patch to fix noMMU build issueThomas Petazzoni2018-06-251-0/+51
| | | | | | | | | | | | This commit adds a patch to fix a build issue encountered on noMMU architectures when building gdbserver, due to the use of fork() instead of vfork(). The patch has been submitted upstream: https://sourceware.org/ml/gdb-patches/2018-06/msg00569.html Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: remove 7.11Romain Naour2018-06-242-5/+0
| | | | | | | | | Now that 8.1 has been added and 8.0 is the default version, let's remove the old 7.11 release. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: remove 7.10Romain Naour2018-06-242-5/+0
| | | | | | | | | Now that 8.1 has been added and 8.0 is the default version, let's remove the old 7.10 release. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: switch to 8.0 as the default versionRomain Naour2018-06-241-6/+9
| | | | | | | | | 8.1 is around, 8.0 has already seen a point release, so it's time to make 8.0 the default version for gdb. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: add version 8.1Romain Naour2018-06-247-3/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://sourceware.org/ml/gdb-announce/2018/msg00001.html gdb 8.1 has a new optional dependency on mpfr, which according to the NEWS file: GDB now uses the GNU MPFR library, if available, to emulate target floating-point arithmetic during expression evaluation when the target uses different floating-point formats than the host. At least version 3.1 of GNU MPFR is required. So for the target gdb, this is unnecessary, and therefore we forcefully disable mpfr support by passing --without-mpfr. For the host gdb, it would potentially be useful, but since it's a new feature that isn't essential, we for now keep it disabled as well. An option may be added later if needed. To avoid gnulib issues with uClibc/musl, we need to pass additional configure/make variables, like is done in OpenEmbedded [1]. [1] http://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/gdb/gdb_8.1.bb?id=02664a8dcd1ebb6cd77248e1b97a78390ea06033#n9 We re-add the same patches as the ones present for gdb 8.0.1, except 0004-nat-linux-ptrace.c-add-missing-gdb_byte-cast.patch, which was merged upstream. Signed-off-by: Romain Naour <romain.naour@gmail.com> [Thomas: change mpfr handling.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: rework dependency for C++11Thomas Petazzoni2018-06-242-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we are about to switch to 8.0 as the default gdb version, we need to adjust how the gdb dependencies are handled. Indeed, from 8.0 onwards, gdb needs a C++11 capable compiler, i.e at least gcc 4.8. Until now, Config.in.host was making sure that gdb 8.0 was not selectable if the cross-compilation toolchain did not have C++ support with gcc >= 4.8. This worked fine because the default version of gdb, used as the target gdb version when no host gdb is built, was 7.11, and did not require C++11. With the switch to 8.0 as the default version, when target gdb is enabled but not host gdb, 8.0 is used, which means we need a C++11 capable compiler. The dependencies in Config.in.host are no longer sufficient. So instead, we remove the target-related dependencies from Config.in.host and move them properly to Config.in. The overall logic is the following: - In Config.in.host, BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS ensures that we have at least host gcc 4.8 if we're on ARC, because the ARC gdb needs C++11. We remove the target toolchain related dependencies from here. - In Config.in.host, the version selection ensures that 8.0 cannot be selected if the host toolchain does not have at least gcc 4.8. We remove the target toolchain related dependencies from here. - In Config.in.host, we introduce a BR2_PACKAGE_GDB_NEEDS_CXX11 option, that indicates whether the currently selected version of gdb requires C++11 support in the toolchain to build the target variant. Even though this option is more related to the target variant of gdb, we keep it in Config.in.host so that it appears next to the definition of BR2_GDB_VERSION, to make sure they are kept in sync. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/gdb: fix gdbserver build for m68kRomain Naour2018-06-232-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* toolchain: Bump ARC tools to arc-2018.03-rc2Evgeniy Didin2018-05-282-2/+2
| | | | | | | | | | | | | | | | | | | This commit bumps ARC toolchain to arc-2018.03-rc2, which includes significant changes since arc-2018.03-rc1. We want to test how new toolchain-rc2 builds packages, so we can make fixes before release of toolcain. This makes us closer to toolchain release which will be in a few weeks. Please note that it is a release candidate and it might contain some breakages, please don't use it for production builds. Signed-off-by: Evgeniy Didin <didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 7aaabe8fc04006b15bb5f9aaf08ac07603fcf7fe) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* gdb: actually disable gdbserver if BR2_PACKAGE_GDB_SERVER is unsetAnssi Hannula2018-05-191-1/+1
| | | | | | | | | | | | | | | | | The gdb configure script is given --enable-gdbserver when BR2_PACKAGE_GDB_SERVER is set, but it is not given --disable-gdbserver when BR2_PACKAGE_GDB_SERVER is unset. gdb gdb/configure.ac defaults to enabling gdbserver in "native" (host=target) cases, which is always the case when buildroot builds a gdb which runs on the target hardware. The gdbserver will overwrite BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY gdbserver, if any. Fix that by passing --disable-gdbserver when BR2_PACKAGE_GDB_SERVER is unset. Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/gdb: don't remove support files if python chosenJonas Zaddach2018-04-271-0/+2
| | | | | | | | | | | | | | If one wants to use GDB with python support on the target, you need the support files installed by GDB. These get usually deleted to save some space, so I just wrapped the Makefile code deleting them in a conditional block depending on if python support is active or not. Signed-off-by: Jonas Zaddach <jzaddach@cisco.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Thomas: - use positive logic "if python is disabled" - put the comment inside the condition, as suggested by Arnout] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* gdb/7.10: remove Blackfin patchThomas Petazzoni2018-04-156-372/+0
| | | | | | And renumber remaining patches Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* gdb: remove Blackfin patchThomas Petazzoni2018-04-156-155/+0
| | | | | | And renumber remaining patches. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* toolchain, gcc, gdb, binutils, uclibc: remove Blackfin codeThomas Petazzoni2018-04-152-9/+0
| | | | | | | This commit removes Blackfin related code from all toolchain code and components. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* toolchain: Bump ARC tools to arc-2018.03-rc1Evgeniy Didin2018-04-122-2/+2
| | | | | | | | | | | | | | | | | | | | This commit bumps ARC toolchain to arc-2018.03-rc1. We want to test how new toolchain-rc1 builds packages, so we can make fixes before release of toolcain. ARC GNU tools of version arc-2018.03-rc1 bring some quite significant changes like: * Binutils v2.29.51 with additional ARC patches * GCC 7.3.1 with additional ARC patches Please note that it is a release candidate and it might contain some breakages, please don't use it for production builds. Signed-off-by: Evgeniy Didin <didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* gdb: prevent installation of libbfd.so and libopcode.soPeter Seiderer2017-12-171-1/+3
| | | | | | | | | | | | | The gdb install target installs dynamic versions of libbfd and libopcode, accidentally overwriting the binutils provided versions (gdb itself links against the bundled static ones to avoid version problems, so the dynamic ones are un-needed). Prevent the installation by using the '--disable-install-libbfd' configure option. Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* toolchain: Bump ARC tools to arc-2017.09 releaseEvgeniy Didin2017-11-032-2/+2
| | | | | | | | | | | | | | | | | | This commit finally bumps ARC tools to the most recent arc-2017.09 release version. ARC GNU tools of version arc-2017.09 bring some quite significant changes like: * Binutils v2.29 with additional ARC patches * GCC 7.1.1 with additional ARC patches * glibc 2.26 with additional ARC patches More information on this release could be found here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2017.09-release Signed-off-by: Evgeniy Didin <didin@synopsys.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: arc-buildroot@synopsys.com Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: ARC version has stringent dependencies on host gccYann E. MORIN2017-11-021-4/+14
| | | | | | | | | | | | | | | | | | The ARC gdb version requires a gcc >= 4.8 (because C++11). Since the host variant uses the same sources as the target variant, we must ensure that we have a host gcc >= 4.8 as well. Move the architecture dependencies to their own symbol, and also hide the comment when they are not met. Fixes: http://autobuild.buildroot.net/results/43eae264991aa369490236c7bd59c0b6a67fcf25/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* toolchain: Bump ARC tools to arc-2017.09-rc1Evgeniy Didin2017-10-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | This commit bumps ARC toolchain to arc-2017.09-rc1. The arc-2017.09 series is built on top of upstream GCC 7.1.1 and Binutils 2.29 so please expect all kinds of breakages related to GCC 7.x as we saw earlier with the move from 4.8 to 6.x :) Note patches for both GCC and Binutils were updated with copies from corresponding mainline versions, i.e. "package/gcc/7.2.0" and "package/binutils/2.29". Please note that it is a release candidate and it might contain some breakages, please don't use it for production builds. Signed-off-by: Evgeniy Didin <didin@synopsys.com> Cc: Alexey Brodkin <abrodkin@synopsys.com> Cc: arc-buildroot@synopsys.com Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Thomas: drop binutils patch related to the Blackfin architecture.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/gdb: bump to version 8.0.1Romain Naour2017-10-016-2/+2
| | | | | | | https://sourceware.org/ml/gdb-announce/2017/msg00004.html Signed-off-by: Romain Naour <romain.naour@gmail.com> 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-102-0/+82
| | | | | | | | | | | | | | | | | | | 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: drop support for MicroblazeThomas Petazzoni2017-08-044-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Microblaze support was never upstreamed in gdb. We currently use a gdb from the Xilinx Github repository, but this gdb is based on 7.6, and has never been updated in the last 4 years. There are no other active branches at https://github.com/Xilinx/gdb/branches. Xilinx has a slightly newer gdb, based on 7.7, available at https://github.com/Xilinx/meta-xilinx/tree/master/recipes-microblaze/gdb. However, it's apparently only available in the form of stack of big patches (https://github.com/Xilinx/meta-xilinx/tree/master/recipes-microblaze/gdb/files). Currently, gdb on Microblaze fails to build in various conditions: * Against glibc, with "error: conflicting types for 'ps_lgetfpregs'" * Against musl, with "error: unknown type name 'elf_gregset_t'" While those issues can probably be fixed, the fact that there is no active upstream significantly reduces the incentive to fix those problems. Therefore, let's drop support for gdb on Microblaze entirely. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* gdb: force to use ncurses and not termcap for host-gdbThomas Petazzoni2017-08-011-0/+1
| | | | | | | | | | | | | | | | | | | Both our target and host gdb depend on ncurses (host-ncurses for host-gdb, of course). However, while for the target we passs --with-curses, we are not doing this for the host variant. Due to this, host-gdb default to using the termcap library: if such a library is available on the build system, it will be used instead of the host-ncurses we have built. This causes the host gdb binary to depend on a library that we do not provide in $(HOST_DIR), breaking the principle of a standalone SDK (which should only depend on the C library). To solve this, we simply pass --with-curses in HOST_GDB_CONF_OPTS, which forces host-gdb to use the host-ncurses library. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* arch/xtensa: accept the overlay to be an URLYann E. MORIN2017-07-091-0/+2
| | | | | | | | | | | | | It can be interesting to get the overlay from a remote server, rather than expect it to be present locally. Since that file can be any URL, we can't know its hash, so we just exclude it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> [Thomas: use DL_DIR instead of BR2_DL_DIR.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* arch/xtensa: allow specifying path to tarball fileYann E. MORIN2017-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currently, specifying a custom Xtrensa core is done with two variables: - the core name - the directory containing the overlay tarball However, the core name only serves to construct the tarball name, and is not used whatsoever to configure any of the toolchain components (binutils, gcc or gdb), except through the files that are overlayed in their respective source trees. This has two main drawbacks: - the overlay file must be named after the core, - the tarball can not be compressed. Furthermore, it also makes it extremely complex to implement a download of that tarball. So, those two variables can be squeezed into a single variable, that is the complete path of the overlay tarball. Update the qemu-xtensa defconfig accordingly. Note: we do not add a legacy entry for BR2_XTENSA_CORE_NAME, since it was previously a blind option in the last release, and there's been no release since we removed BR2_XTENSA_CUSTOM_NAME. So, we just update the legacy comments for BR2_XTENSA_CUSTOM_NAME, since that's all the user could have seen in any of our releases so far. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/binArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/bin' | xargs sed -i 's%$(HOST_DIR)/usr/bin%$(HOST_DIR)/bin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: Remove /usr part from installation path of gdbserverArnout Vandecappelle2017-07-051-1/+1
| | | | | | Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: fix full gdb build for MIPS muslVicente Olivert Riera2017-06-194-0/+161
| | | | | | | | | | | | | | | | 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>
* package/gdb: add support for gdb 8.0Romain Naour2017-06-114-0/+107
| | | | | | | | | | | | | | | | | Add a dependency on gcc >= 4.8 since gdb needs a C++11 compiler. Remove included patch since 7.12.1: 0001-Remove-const-in-xtensa-linux-nat.c-fetch_gregs.patch https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=d274ecf4ddf76768af57e27f654b9ce6784b391c Rebase remaining patches: 0002-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch 0003-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch See https://sourceware.org/ml/gdb-announce/2017/msg00003.html Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* gdb: fix build of gdbserver on m68k/coldfireThomas Petazzoni2017-06-113-0/+96
| | | | | | | | | | | | | | | | | | | | | | | 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-116-0/+282
| | | | | | | | | | | | | | | | | | | 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
* gdb: not available on ARM noMMU and OpenRISCThomas Petazzoni2017-06-112-0/+4
| | | | | | | | | | | | Neither gdb nor gdbserver have support for ARM noMMU and OpenRISC, so let's disable gdb on those architectures. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Changes since v2: - Fixed BR2_openrisc to BR2_or1k in Config.in.host Changes since v1: - Fixed BR2_openrisc to BR2_or1k
OpenPOWER on IntegriCloud