buildroot/toolchain/toolchain-external
Thomas De Schampheleire 049135c409 toolchain/toolchain-external: fixup gdb pretty-printer loader for libstdcxx
gcc installs a libstdcxx-...so-gdb.py file that gdb will load automatically
when it loads libstdcxx.so, via the mechanism described at [1].

However, the auto-load file installed by gcc contains hardcoded paths
referring to the location where the (external) toolchain was built, which
are normally not available.

Fix up the paths in the load file so that the pretty printers can be loaded
automatically.

Note that gdb will only auto-load the file if its location is marked as
'safe'. A subsequent commit will take care of that.

Technically, there could be more than one load file, e.g. in lib and
usr/lib, so fix them all. This was for example observed in
BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64.
In a very specific case with a local custom toolchain, there were actually
two 'python' directories, which would break the sed command, so arbitrarily
limit to the first one encountered.

[1] https://sourceware.org/gdb/onlinedocs/gdb/objfile_002dgdbdotext-file.html

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-25 23:12:29 +02:00
..
toolchain-external-andes-nds32 toolchain/toolchain-external/toolchain-external-andes-nds32: add missing dependencies/select 2019-05-31 00:06:52 +02:00
toolchain-external-arm-aarch64 toolchain/toolchain-external: update Arm AArch64 toolchain 10.2-2020.11 2021-02-03 22:52:56 +01:00
toolchain-external-arm-aarch64-be toolchain/toolchain-external: update Arm AArch64 BE toolchain 10.2-2020.11 2021-02-03 22:52:57 +01:00
toolchain-external-arm-arm toolchain/toolchain-external: update Arm ARM toolchain 10.2-2020.11 2021-02-03 22:52:55 +01:00
toolchain-external-bootlin support/scripts/gen-bootlin-toolchains: correct xtensa-lx60 toolchain dependencies 2021-03-02 23:52:49 +01:00
toolchain-external-codescape-img-mips toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codescape-mti-mips toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codesourcery-aarch64 toolchain/external: hide versions too old for the current arch 2017-11-24 22:16:19 +01:00
toolchain-external-codesourcery-arm arch/arm: armv8 is really armv8a 2017-11-24 23:01:41 +01:00
toolchain-external-codesourcery-mips toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-codesourcery-niosII toolchain-external: bump CodeSourcery NIOSII to 2018.05 2018-05-30 22:51:29 +02:00
toolchain-external-custom {linux, linux-headers}: add version 5.13 2021-06-29 21:22:28 +02:00
toolchain-external-linaro-aarch64 toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-linaro-aarch64-be toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-linaro-arm toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-linaro-armeb toolchain-external: enable OpenMP for supported toolchains 2019-03-26 20:18:06 +01:00
toolchain-external-synopsys-arc toolchain: bump ARC prebuild toolchain to arc-2019.09 2020-01-18 13:14:07 +01:00
Config.in Merge branch 'next' 2020-09-02 18:14:46 +02:00
pkg-toolchain-external.mk toolchain/toolchain-external: fixup gdb pretty-printer loader for libstdcxx 2021-07-25 23:12:29 +02:00
toolchain-external.mk Fix makefile include order by using sort/wildcard. 2017-11-24 00:08:23 +01:00