diff options
| author | Romain Naour <romain.naour@gmail.com> | 2018-02-25 19:34:15 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-05-20 16:57:22 +0200 |
| commit | 191d3c2b27c7460873b0d6786f02774db0822970 (patch) | |
| tree | 4900863c18dc39dff7a34a5e16f5ae90867c2355 | |
| parent | 387a362de24b3c55c504c58442609d3adfadf48f (diff) | |
| download | buildroot-191d3c2b27c7460873b0d6786f02774db0822970.tar.gz buildroot-191d3c2b27c7460873b0d6786f02774db0822970.zip | |
package/strace: enable demangling of C++ symbol names in stack trace
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
| -rw-r--r-- | package/strace/strace.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/strace/strace.mk b/package/strace/strace.mk index 4d42085819..7b3ff184fb 100644 --- a/package/strace/strace.mk +++ b/package/strace/strace.mk @@ -18,6 +18,14 @@ else STRACE_CONF_OPTS += --without-libunwind endif +# Demangling symbols in stack trace needs libunwind and libiberty. +ifeq ($(BR2_PACKAGE_BINUTILS)$(BR2_PACKAGE_LIBUNWIND),yy) +STRACE_DEPENDENCIES += binutils +STRACE_CONF_OPTS += --with-libiberty=check +else +STRACE_CONF_OPTS += --without-libiberty +endif + define STRACE_REMOVE_STRACE_GRAPH rm -f $(TARGET_DIR)/usr/bin/strace-graph endef |

