ide: fixed to compile with GCC

git-svn-id: svn://ultimatepp.org/upp/trunk@9091 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-10-27 11:21:37 +00:00
parent ac37cc52aa
commit 58a0849c24
4 changed files with 6 additions and 4 deletions

View file

@ -389,11 +389,13 @@ void Ide::ConditionalBreak()
Index<String> cfg = PackageConfig(IdeWorkspace(), 0, GetMethodVars(method), mainconfigparam,
*CreateHost(true), *CreateBuilder(~CreateHostRunDir()));
#ifdef COMPILER_MSC
if(cfg.Find("MSC") >= 0) {
if(EditPDBExpression("Conditional breakpoint", brk, NULL))
editor.SetBreakpoint(ln, brk);
}
else
#endif
if(EditText(brk, "Conditional breakpoint", "Condition"))
editor.SetBreakpoint(ln, brk);
editor.RefreshFrame();

View file

@ -212,6 +212,4 @@ struct Gdb : Debugger, ParentCtrl {
#include "Pdb.h"
#endif
bool EditPDBExpression(const char *title, String& brk, Pdb *pdb);
#endif

View file

@ -356,8 +356,6 @@ One<Debugger> PdbCreate(One<Host> rval_ host, const String& exefile, const Strin
return dbg;
}
#endif
#define LAYOUTFILE <ide/Debuggers/Pdb.lay>
#include <CtrlCore/lay.h>
@ -403,3 +401,5 @@ bool EditPDBExpression(const char *title, String& brk, Pdb *pdb)
brk = ~dlg.text;
return true;
}
#endif

View file

@ -420,3 +420,5 @@ struct Pdb : Debugger, ParentCtrl {
void LoadGlobals(DWORD64 base);
};
bool EditPDBExpression(const char *title, String& brk, Pdb *pdb);