From 9ef0d523bc392e33e2d533564cf48d1f93fd45d6 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 16 Sep 2019 15:15:04 +0000 Subject: [PATCH] Added Macro Substitution to ExecuteUserCommands. Patch by Michael Ring git-svn-id: trunk@61889 - --- components/lazdebuggergdbmi/gdbmidebugger.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/lazdebuggergdbmi/gdbmidebugger.pp b/components/lazdebuggergdbmi/gdbmidebugger.pp index e2e980a122..39a9f682b6 100644 --- a/components/lazdebuggergdbmi/gdbmidebugger.pp +++ b/components/lazdebuggergdbmi/gdbmidebugger.pp @@ -61,7 +61,7 @@ uses FileUtil, LazUTF8, LazClasses, LazLoggerBase, LazStringUtils, Maps, UTF8Process, LazFileUtils, // IdeIntf - BaseIDEIntf, PropEdits, + BaseIDEIntf, PropEdits, MacroIntf, // DebuggerIntf DbgIntfBaseTypes, DbgIntfDebuggerBase, DbgIntfPseudoTerminal, // LazDebuggerGdbmi @@ -11383,8 +11383,9 @@ begin else if s[1] <> '#' then begin + IDEMacros.SubstituteMacros(s); Result := ExecuteCommand(s,[], f, t); - if not Result then + if (not Result) then break; end; end;