From 1d9c95d07a8d0813bf927d70044170d93d7ac017 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Mon, 5 Sep 2022 01:59:56 +0200 Subject: [PATCH] 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] --- tests/binaries/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/binaries/makefile b/tests/binaries/makefile index 7e16772ea..cdd371d23 100644 --- a/tests/binaries/makefile +++ b/tests/binaries/makefile @@ -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