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
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.mk