projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
94a1798
)
added support for using LLDB instead of GDB when debugging on Mac
author
Holger Schemel
<info@artsoft.org>
Fri, 19 Feb 2021 17:10:02 +0000
(18:10 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 19 Feb 2021 17:10:02 +0000
(18:10 +0100)
src/Makefile
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index 39029a0ce9989fe885c29bc3e43df555c1886dca..f40ada2966c14b4c33ee06d2f5f2ae02ed648949 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-39,6
+39,8
@@
WINDRES = windres
CONVERT_ICON_ARGS = -transparent black -background transparent
CONVERT_ICON_ARGS = -transparent black -background transparent
+DEBUGGER = gdb -batch -ex "run" -ex "bt"
+
PROGBASE = rocksndiamonds
PROGNAME = ../$(PROGBASE)
PROGBASE = rocksndiamonds
PROGNAME = ../$(PROGBASE)
@@
-66,8
+68,9
@@
RANLIB = emranlib
STRIP = true
endif
STRIP = true
endif
-ifdef BUILD_DIST # distribution build
ifeq ($(shell uname -s),Darwin) # compiling on Mac OS X
ifeq ($(shell uname -s),Darwin) # compiling on Mac OS X
+DEBUGGER = lldb --batch -o "run" -k "bt" -k "quit"
+ifdef BUILD_DIST # distribution build
MAC_TARGET_VERSION_MIN = 10.7
EXTRA_FLAGS_MAC = -mmacosx-version-min=$(MAC_TARGET_VERSION_MIN)
EXTRA_CFLAGS = $(EXTRA_FLAGS_MAC)
MAC_TARGET_VERSION_MIN = 10.7
EXTRA_FLAGS_MAC = -mmacosx-version-min=$(MAC_TARGET_VERSION_MIN)
EXTRA_CFLAGS = $(EXTRA_FLAGS_MAC)
@@
-354,7
+357,7
@@
run:
cd .. && ./$(PROGBASE) --verbose
gdb:
cd .. && ./$(PROGBASE) --verbose
gdb:
- cd .. &&
gdb -batch -x GDB_COMMANDS ./
$(PROGBASE)
+ cd .. &&
$(DEBUGGER)
$(PROGBASE)
valgrind:
cd .. && valgrind -v --leak-check=yes ./$(PROGBASE) 2> valgrind.out
valgrind:
cd .. && valgrind -v --leak-check=yes ./$(PROGBASE) 2> valgrind.out