From eca3ddc5ce91d4ae5f73b46c1365d5bd3a08ceb2 Mon Sep 17 00:00:00 2001 From: pierre Date: Sun, 4 Sep 2016 14:52:53 +0000 Subject: [PATCH] Regenerate Makefile after change to Makefile.fpc: 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@34425 - --- ide/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ide/Makefile b/ide/Makefile index 0626197b0b..5cf0c7a2aa 100644 --- a/ide/Makefile +++ b/ide/Makefile @@ -346,6 +346,7 @@ endif FPMAKE_BIN_CLEAN=$(wildcard ./fpmake$(SRCEXEEXT)) LOCALFPMAKE=./fpmake$(SRCEXEEXT) override NOCPUDEF=1 +GDBMI_DEFAULT_OS_LIST=darwin freebsd haiku linux netbsd openbsd solaris win32 win64 override INSTALL_FPCPACKAGE=y override INSTALL_FPCSUBDIR=ide ifdef REQUIRE_UNITSDIR @@ -2292,9 +2293,15 @@ endif ifdef NOGDB FPMAKE_OPT+=--NoGDB=1 endif +ifndef NOGDBMI +ifneq ($(findstring $(OS_TARGET),$(GDBMI_DEFAULT_OS_LIST)),) +FPMAKE_OPT+=--GDBMI=1 +endif +else ifdef GDBMI FPMAKE_OPT+=--GDBMI=1 endif +endif ifdef PPC_TARGET FPMAKE_OPT+=--CompilerTarget=$(PPC_TARGET) endif