mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 06:31:36 +02:00
Change default mode to using mi interpreter, with GDB running as an separete process.
+ New Makefile variable named: GDBMI_DEFAULT_OS_LIST which lists all OS's for which the use of gdbmi is enabled by default. Starting value: darwin freebsd haiku linux netbsd openbsd solaris win32 win64 Default can be overriden by using NOGDBMI variable. This change is mainly to anticipate GDB source switch to C++ after 7.12 version. git-svn-id: trunk@34424 -
This commit is contained in:
parent
1001bac6bb
commit
e52c7d5c43
@ -31,6 +31,7 @@ FPMAKE_BIN_CLEAN=$(wildcard ./fpmake$(SRCEXEEXT))
|
|||||||
LOCALFPMAKE=./fpmake$(SRCEXEEXT)
|
LOCALFPMAKE=./fpmake$(SRCEXEEXT)
|
||||||
# do not add -d$(CPU_TARGET)
|
# do not add -d$(CPU_TARGET)
|
||||||
override NOCPUDEF=1
|
override NOCPUDEF=1
|
||||||
|
GDBMI_DEFAULT_OS_LIST=darwin freebsd haiku linux netbsd openbsd solaris win32 win64
|
||||||
|
|
||||||
[rules]
|
[rules]
|
||||||
# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
|
# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
|
||||||
@ -54,9 +55,16 @@ endif
|
|||||||
ifdef NOGDB
|
ifdef NOGDB
|
||||||
FPMAKE_OPT+=--NoGDB=1
|
FPMAKE_OPT+=--NoGDB=1
|
||||||
endif
|
endif
|
||||||
|
ifndef NOGDBMI
|
||||||
|
ifneq ($(findstring $(OS_TARGET),$(GDBMI_DEFAULT_OS_LIST)),)
|
||||||
|
FPMAKE_OPT+=--GDBMI=1
|
||||||
|
endif
|
||||||
|
else
|
||||||
ifdef GDBMI
|
ifdef GDBMI
|
||||||
FPMAKE_OPT+=--GDBMI=1
|
FPMAKE_OPT+=--GDBMI=1
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef PPC_TARGET
|
ifdef PPC_TARGET
|
||||||
FPMAKE_OPT+=--CompilerTarget=$(PPC_TARGET)
|
FPMAKE_OPT+=--CompilerTarget=$(PPC_TARGET)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user