From f561bfa091324d53901386cf782cc74ed455effb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 25 Apr 2023 14:31:24 -0400 Subject: [PATCH] jjb: binutils-gdb: build with debug info This makes the stack traces that GDB shows when it aborts a bit more informative. Change-Id: I52dd433574da35d130978bc95f2c6aa7aa029845 --- scripts/binutils-gdb/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/binutils-gdb/build.sh b/scripts/binutils-gdb/build.sh index 43ea6e9..61fe515 100755 --- a/scripts/binutils-gdb/build.sh +++ b/scripts/binutils-gdb/build.sh @@ -155,8 +155,8 @@ rm -rf "$TMPDIR" mkdir -p "$TMPDIR" export TMPDIR -export CFLAGS="-O2 -fsanitize=address" -export CXXFLAGS="-O2 -fsanitize=address -D_GLIBCXX_DEBUG=1" +export CFLAGS="-O2 -g -fsanitize=address" +export CXXFLAGS="-O2 -g -fsanitize=address -D_GLIBCXX_DEBUG=1" export LDFLAGS="-fsanitize=address" export CC="ccache cc" export CXX="ccache c++" -- 2.34.1