Go to file
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
arch arch: add BR2_ARCH_NEEDS_GCC_AT_LEAST_11 2021-06-20 18:46:51 +02:00
board board/raspberrypi: use kernel Bluetooth mode 2021-07-20 21:53:50 +02:00
boot package: use the generic _HELP_CMDS for kconfig-based packages 2021-07-25 15:20:24 +02:00
configs board/mx6cubox: Switch to extlinux.conf 2021-07-20 21:27:29 +02:00
docs package/pkg-kconfig: generate generic help 2021-07-25 15:20:24 +02:00
fs fs/erofs: add big pcluster support 2021-07-19 22:34:21 +02:00
linux package: use the generic _HELP_CMDS for kconfig-based packages 2021-07-25 15:20:24 +02:00
package package/gdb: fix gdb segfault with Python 3.9 support 2021-07-25 22:34:26 +02:00
support Makefile: Parallelize glibc locale generation 2021-07-25 16:46:30 +02:00
system
toolchain toolchain/toolchain-external: fixup gdb pretty-printer loader for libstdcxx 2021-07-25 23:12:29 +02:00
utils utils/scanpypi: search LICENSE.MD 2021-07-04 22:04:28 +02:00
.defconfig
.flake8
.gitignore
.gitlab-ci.yml
CHANGES Update for 2021.02.3 2021-06-13 10:42:59 +02:00
Config.in Config.in: disable PIC/PIE for microblaze 2021-07-25 15:48:13 +02:00
Config.in.legacy package/spidermonkey: drop package 2021-07-24 23:29:22 +02:00
COPYING
DEVELOPERS package/apg: new package 2021-07-24 00:06:46 +02:00
Makefile Makefile: Parallelize glibc locale generation 2021-07-25 16:46:30 +02:00
Makefile.legacy
README docs: move the IRC channel away from Freenode 2021-05-29 22:16:23 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches