kumquat-buildroot/toolchain
Thomas Petazzoni 7130ceb267 toolchain: generate a gdbinit file
This commit slightly improves the external toolchain backend, and the
gdb build logic to create a file named
$(STAGING_DIR)/usr/share/buildroot/gdbinit which can be used as a
gdbinit file using gdb -x option. This allows gdb to automatically use
the proper sysroot to find libraries.

The initial insight for this patch comes from the report of Oded
Hanson <OHanson@xsightsys.com>, who found an issue with the Eclipse
Buildroot plugin, which was setting a solib-path in gdb, but not a
sysroot. Setting a solib-path was enough to find shared libraries, but
not the dynamic linker. And since Eclipse doesn't allow to set the
sysroot in any other way than giving a gdbinit file, it makes sense to
have Buildroot generate a gdbinit file (which can be used in other
situations than Eclipse).

To achieve this, this commit introduces a gen_gdbinit_file helper in
toolchain/helpers.mk, and uses it for the internal toolchain and
external toolchain backends.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[ThomasDS: minor updates in commit message]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-05-05 13:31:30 +02:00
..
toolchain package: add toolchain dependency to every target package 2014-02-14 21:08:35 +01:00
toolchain-buildroot toolchain: control vendor part in GNU_TARGET_NAME 2014-04-06 14:16:06 +02:00
toolchain-external toolchain: generate a gdbinit file 2014-05-05 13:31:30 +02:00
Config.in toolchain: enable internal for aarch64 2014-04-24 15:21:13 +02:00
helpers.mk toolchain: generate a gdbinit file 2014-05-05 13:31:30 +02:00
toolchain-common.in toolchain: add option to declare toolchains affected by gcc PR 58595 2014-04-14 22:37:48 +02:00