Commit 47ac41a704582cd7636cbc06f10d8bbb1948ad25

Thomas de Grivel 2024-09-16T15:20:10

make gdb_ikc3_asan

diff --git a/Makefile b/Makefile
index 8acd1e3..7fb5e01 100644
--- a/Makefile
+++ b/Makefile
@@ -261,6 +261,12 @@ gdb_ikc3:
 	${MAKE} -C libkc3 debug
 	${MAKE} -C ikc3 gdb_ikc3
 
+gdb_ikc3_asan:
+	${MAKE} -C libtommath asan
+	${MAKE} -C ucd2c
+	${MAKE} -C libkc3 asan
+	${MAKE} -C ikc3 gdb_ikc3_asan
+
 gdb_test:
 	${MAKE} -C libtommath debug
 	${MAKE} -C ucd2c
diff --git a/ikc3/Makefile b/ikc3/Makefile
index 8ac9c71..e2b51ec 100644
--- a/ikc3/Makefile
+++ b/ikc3/Makefile
@@ -46,6 +46,9 @@ gcovr:
 gdb_ikc3: debug
 	if [ -f ikc3_debug.core ]; then gdb .libs/ikc3_debug ikc3_debug.core; else gdb .libs/ikc3_debug; fi
 
+gdb_ikc3_asan: asan
+	if [ -f ikc3_debug.core ]; then gdb .libs/ikc3_asan ikc3_asan.core; else gdb .libs/ikc3_asan; fi
+
 install:
 	mkdir -p ${prefix}/bin
 	install -m 755 ikc3 ${prefix}/bin/ikc3