Fix Dwarf Errors with old GDBs in docker

This should fix things like:
> tests/test_heap.py::test_try_free_invalid_next_size_fast Dwarf Error: DW_FORM_strx1 found in non-DWO CU [in module /pwndbg/tests/binaries/heap_bugs.out]
pull/1114/head
Disconnect3d 3 years ago committed by GitHub
parent 69d357633c
commit 1d9c95d07a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ CFLAGS += -m32
endif
ifeq ($(DEBUG), 1)
CFLAGS += -DDEBUG=1 -ggdb -O0
CFLAGS += -DDEBUG=1 -ggdb -O0 -gdwarf-4
else
CFLAGS += -O1
endif
@ -78,7 +78,7 @@ heap_bugs.out: heap_bugs.c
${GLIBC_2_33}/nptl_db:\
${GLIBC_2_33}/nptl:\
-Wl,--dynamic-linker=${GLIBC_2_33}/ld-linux-x86-64.so.2 \
-g -o heap_bugs.out heap_bugs.c
${CFLAGS} -o heap_bugs.out heap_bugs.c
# TODO/FIXME: We should probably force this to 2.29? a version with tcache?
#heap_bins.out: heap_bins.c

Loading…
Cancel
Save