[Buildroot] [PATCH 0/5] GDB updates

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Oct 9 19:16:40 UTC 2021


Hello,

The starting point for this series was the patch from Michael Fischer
adding support for gdb 11.x. Michael's patch was not fully correct as
such, and required a few adaptations.

But while doing it, I discovered a bug in the current gdb package,
fixed by PATCH 1 in this series.

Then, after adding support for gdb 11.x in PATCH 2, we do the usual
dance of bumping the gdb version to 10.x in PATCH 3, and dropping
support for the oldest gdb version supported in PATCH 4.

We have a lot of different situations with gdb: building host-gdb
only, building target gdbserver only, building target full gdb only,
building both host-gdb and target gdb, the special ARC architecture
situation that requires additional dependencies (host-flex,
host-bison), the fact that GDB 11.x now needs gmp, etc. So I went
ahead and implement a series of test cases. They don't do much in
terms of runtime testing: they just run gdb --version (host or target)
or gdbserver --version, but at least they allow to make sure that the
different combinations continue to build.

And it does work, because it is by writing this series of tests that I
discovered the bug fixed in PATCH 1.

Best regards,

Thomas Petazzoni

Michael Fischer (1):
  package/gdb: add support for gdb 11.x

Thomas Petazzoni (4):
  package/gdb: append to dependencies in conditional
  package/gdb: switch to gdb 10.x as the default
  package/gdb: drop support for version 8.3.x
  support/testing: add suite of tests for gdb

 Config.in.legacy                              |   6 +
 ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch |  46 ++--
 ...-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch |  16 +-
 .../0003-use-asm-sgidefs.h.patch              |   6 +-
 .../0004-gdbserver-fix-build-for-m68k.patch   |  19 +-
 ...fork-inferior-include-linux-ptrace.h.patch |  12 +-
 ...e-of-is-operator-for-comparison-in-p.patch |  42 ----
 ...x-Python3.9-related-runtime-problems.patch | 193 ----------------
 package/gdb/Config.in                         |   1 +
 package/gdb/Config.in.host                    |  19 +-
 package/gdb/gdb.hash                          |   2 +-
 package/gdb/gdb.mk                            |  16 +-
 support/testing/tests/package/test_gdb.py     | 215 ++++++++++++++++++
 13 files changed, 297 insertions(+), 296 deletions(-)
 rename package/gdb/{8.3.1 => 11.1}/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch (74%)
 rename package/gdb/{8.3.1 => 11.1}/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch (71%)
 rename package/gdb/{8.3.1 => 11.1}/0003-use-asm-sgidefs.h.patch (90%)
 rename package/gdb/{8.3.1 => 11.1}/0004-gdbserver-fix-build-for-m68k.patch (78%)
 rename package/gdb/{8.3.1 => 11.1}/0005-nat-fork-inferior-include-linux-ptrace.h.patch (87%)
 delete mode 100644 package/gdb/8.3.1/0006-Fix-incorrect-use-of-is-operator-for-comparison-in-p.patch
 delete mode 100644 package/gdb/8.3.1/0007-Fix-Python3.9-related-runtime-problems.patch
 create mode 100644 support/testing/tests/package/test_gdb.py

-- 
2.31.1



More information about the buildroot mailing list