ide: clang related fixes, find in files now trims long lines when putting them to output display array to avoid slowdowns

git-svn-id: svn://ultimatepp.org/upp/trunk@14115 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-03-02 13:34:24 +00:00
parent 39355c2646
commit 5941dfdae3
7 changed files with 123 additions and 100 deletions

View file

@ -265,10 +265,9 @@ void Ide::BuildAndExtDebugFile()
}
One<Debugger> GdbCreate(One<Host>&& host, const String& exefile, const String& cmdline, bool console);
One<Debugger> Gdb_MI2Create(One<Host>&& host, const String& exefile, const String& cmdline, bool console);
#ifdef PLATFORM_WIN32
One<Debugger> CdbCreate(One<Host>&& host, const String& exefile, const String& cmdline);
One<Debugger> PdbCreate(One<Host>&& host, const String& exefile, const String& cmdline);
One<Debugger> PdbCreate(One<Host>&& host, const String& exefile, const String& cmdline, bool clang);
#endif
void Ide::BuildAndDebug(bool runto)
@ -297,7 +296,7 @@ void Ide::BuildAndDebug(bool runto)
#ifdef PLATFORM_WIN32
if(findarg(builder, "GCC", "CLANG") < 0 || bm.Get("DEBUG_OPTIONS", String()).Find("-gcodeview") >= 0) // llvm-mingw can generate pdb symbolic info
debugger = PdbCreate(pick(host), target, runarg);
debugger = PdbCreate(pick(host), target, runarg, builder == "CLANG");
else
#endif
debugger = GdbCreate(pick(host), target, runarg, console);