kumquat-buildroot/toolchain
Thomas De Schampheleire 6fb3216a80 toolchain: mark sysroot as 'safe' path for gdb auto-load
gdb can automatically load certain files as described in [1]. Such files
could install pretty-printers for complex data structures.

libstdcxx (C++ standard library) provided by gcc, is one example of a
library for which such auto-load file is available. But there are other
examples too, like libglib2.

However, gdb will only auto-load files if the file is located in one of the
locations treated as 'safe'. The Buildroot sysroot is not by default in that
list.

Provide a better debugging experience by adding the sysroot to the 'safe'
list, via the gdbinit file prepared by Buildroot.

[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:19:20 +02:00
..
toolchain
toolchain-buildroot package/glibc, toolchain/toolchain-buildroot: disable native RPC in glibc toolchains 2020-12-29 23:28:57 +01:00
toolchain-external toolchain/toolchain-external: fixup gdb pretty-printer loader for libstdcxx 2021-07-25 23:12:29 +02:00
Config.in {linux, linux-headers}: add version 5.13 2021-06-29 21:22:28 +02:00
helpers.mk toolchain: mark sysroot as 'safe' path for gdb auto-load 2021-07-25 23:19:20 +02:00
toolchain-wrapper.c
toolchain-wrapper.mk toolchain/toolchain-wrapper: disable -ftree-loop-distribute-patterns when building for microblaze with gcc >= 10 2020-10-25 10:48:58 +01:00
toolchain.mk