diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-15 07:46:49 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-06-22 07:53:35 +0200 |
commit | e22dc2f712c95f179f260c183d93b84533e7ba58 (patch) | |
tree | db3b7626c51331b3725e5edb14cc5fb29f5afab4 /rules/pre | |
parent | f73e963ec061570d5434878daf23cfdd1ff42725 (diff) | |
download | OSELAS.Toolchain-e22dc2f712c95f179f260c183d93b84533e7ba58.tar.gz OSELAS.Toolchain-e22dc2f712c95f179f260c183d93b84533e7ba58.tar.xz |
improve debugging
* add more debugging symbols with -g3
* rewrite paths in the debugging data
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pre')
-rw-r--r-- | rules/pre/toolchain.make | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make index 1b4f3f4..6a4c7ae 100644 --- a/rules/pre/toolchain.make +++ b/rules/pre/toolchain.make @@ -46,6 +46,19 @@ PTX_HOST_CROSS_AUTOCONF := \ # PTXDIST_HOST_LDFLAGS := -L${PTXDIST_PATH_SYSROOT_HOST_PREFIX}/lib +ifndef PTXCONF_TOOLCHAIN_DEBUG +TOOLCHAIN_CROSS_DEBUG_FLAGS := \ + -g3 \ + -gno-record-gcc-switches + +TOOLCHAIN_CROSS_DEBUG_MAP := \ + $(call remove_quotes,$(PTXCONF_DESTDIR))= \ + $(PTXDIST_WORKSPACE)/platform-=$(call remove_quotes,$(PTXCONF_PROJECT))/platform- + +GLIBC_FLAGS_ENV += \ + $(addsuffix "-O2 $(TOOLCHAIN_CROSS_DEBUG_FLAGS) $(addprefix -fdebug-prefix-map=,$(TOOLCHAIN_CROSS_DEBUG_MAP))",CFLAGS= CXXFLAGS=) +endif + # # gcc-first # |