From 564906174d892ddbdec2ed091aa7a84add4e5718 Mon Sep 17 00:00:00 2001 From: klugier Date: Sun, 19 Mar 2017 20:02:29 +0000 Subject: [PATCH] .ide executable path is now normalized when passing it to gdb command. #1661 git-svn-id: svn://ultimatepp.org/upp/trunk@10958 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Core/Core.cpp | 2 +- uppsrc/ide/Debuggers/Gdb.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uppsrc/ide/Core/Core.cpp b/uppsrc/ide/Core/Core.cpp index dce7983f2..c6a685004 100644 --- a/uppsrc/ide/Core/Core.cpp +++ b/uppsrc/ide/Core/Core.cpp @@ -581,7 +581,7 @@ String GetExeExt() return ".exe"; #else return ""; -#endif +#endif } String NormalizeExePath(String exePath) diff --git a/uppsrc/ide/Debuggers/Gdb.cpp b/uppsrc/ide/Debuggers/Gdb.cpp index 005a81bf1..2edd373b2 100644 --- a/uppsrc/ide/Debuggers/Gdb.cpp +++ b/uppsrc/ide/Debuggers/Gdb.cpp @@ -335,9 +335,9 @@ bool Gdb::Key(dword key, int count) bool Gdb::Create(One&& _host, const String& exefile, const String& cmdline, bool console) { host = pick(_host); - dbg = host->StartProcess(GdbCommand(console) + GetHostPath(exefile)); + dbg = host->StartProcess(GdbCommand(console) + NormalizeExePath(GetHostPath(exefile))); if(!dbg) { - Exclamation("Error invoking gdb !"); + ErrorOK("Error while invoking gdb!"); return false; } IdeSetBottom(*this);