projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: disable ghc's rts timer and disable signal handlers
[mate.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 544c07c9ee0e5e5967982db392ec0d9a4614d2af..cd0e887209a88be9fbdbc39a696c29faf0d5f59a 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-15,7
+15,7
@@
O_STATIC_FILES = $(shell ls $(B_STATIC)/Mate/*.o) $(wildcard $(B_STATIC)/ffi/*.o
PACKAGES_ := bytestring harpy hs-java plugins
PACKAGES := $(addprefix -package ,$(PACKAGES_))
PACKAGES_ := bytestring harpy hs-java plugins
PACKAGES := $(addprefix -package ,$(PACKAGES_))
-GHC_OPT := -I. -Wall -O0 -fno-warn-unused-do-bind
+GHC_OPT := -I. -Wall -O0 -fno-warn-unused-do-bind
-rtsopts
GHC_LD := -optl-Xlinker -optl-x
GHC_LD := -optl-Xlinker -optl-x
@@
-40,7
+40,7
@@
COMPILEF = $(basename $@).compile
%.class: %.java
@if [ -f $(COMPILEF) ]; \
then $(SHELL) $(COMPILEF); \
%.class: %.java
@if [ -f $(COMPILEF) ]; \
then $(SHELL) $(COMPILEF); \
- else $(JAVAC) $<; fi
+ else $(JAVAC) $
(JAVA_FILES) $
<; fi
@echo "JAVAC $<"
ffi/native.o: ffi/native.c
@echo "JAVAC $<"
ffi/native.o: ffi/native.c
@@
-58,6
+58,9
@@
mate.static: Mate.hs ffi/trap.c $(HS_FILES) $(HS_BOOT) ffi/native.o $(CLASS_FILE
%.dbg: %.class mate.dbg
./mate.dbg $(basename $<)
%.dbg: %.class mate.dbg
./mate.dbg $(basename $<)
+%.gdb: %.class mate.dbg
+ gdb -x .gdbcmds -q --args mate.dbg $(basename $<) +RTS -V0 --install-signal-handlers=no
+
ifeq (${DBGFLAGS},)
DEBUGFLAGS = -DDBG_JIT -DDBG_MP
else
ifeq (${DBGFLAGS},)
DEBUGFLAGS = -DDBG_JIT -DDBG_MP
else