buildroot/package/gdb
Thomas Petazzoni f71ad71f24 gdb: fix simulator build failures
Following reports from me of build failures of the GDB simulator for the
Blackfin architecture, Waldemar cooked a
patch (0005-fix-sim-compile.patch) that removes the typedef of SIM_CPU,
because there was a redefinition of this typedef for Blackfin. This was
not causing an issue with recent compilers as redefining the same
typedef is valid with recent compilers, but was causing build failures
with gcc 4.4.x.

However, by removing the common definition of SIM_CPU, this patch broke
the build of the GDB simulator on other architectures, which did not had
an architecture-specific redefinition of SIM_CPU (unlike Blackfin).

The crux of the problem is in a commit from Mike Frysinger, that tries
to refactor the SIM_CPU definition into a common one. Except that it
leaves a redefinition of it for Blackfin. Removing this second
definition however doesn't easily work, due to include ordering
issues. The easiest solution is to simply revert the patch from Mike
Frysinger. This allows to fix the build for all architectures and all
compiler versions.

Fixes:

  http://autobuild.buildroot.net/results/3b82c44ee853fab0e0c63881f0705bb659412917/
  http://autobuild.buildroot.net/results/dafbb93ab38a4285ce42436219d552cceb14828b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-08-05 00:16:22 +02:00
..
7.9.1 gdb: add upstream patches to fix musl build 2016-03-05 15:14:40 +01:00
7.10.1 gdb: fix simulator build failures 2016-08-05 00:16:22 +02:00
7.11.1 gdb: fix simulator build failures 2016-08-05 00:16:22 +02:00
Config.in gdb: disable on Blackfin 2015-05-03 19:32:49 +02:00
Config.in.host gdb: do not allow selecting the simulator on ARC 2016-06-15 23:10:31 +02:00
gdb-python-config gdb: add support for Python in target gdb 2014-09-16 22:52:37 +02:00
gdb.hash gdb: bump 7.11.x branch to 7.11.1 2016-06-02 15:26:06 +02:00
gdb.mk package/gdb: fix gnulib issue with musl and uClibc toolchains 2016-07-24 21:52:29 +02:00