jjb: binutils-gdb: build with debug info
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Apr 2023 18:31:24 +0000 (14:31 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 25 Apr 2023 20:12:03 +0000 (16:12 -0400)
This makes the stack traces that GDB shows when it aborts a bit more
informative.

Change-Id: I52dd433574da35d130978bc95f2c6aa7aa029845

scripts/binutils-gdb/build.sh

index 43ea6e99e9aa6aa95389263870c00be110d520c2..61fe515ed6329a6ea345c2d68720097c6d623e1c 100755 (executable)
@@ -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++"
This page took 0.024867 seconds and 4 git commands to generate.