Browse Source

Added .exe postfix to executable when debugging on Windows when not using remote host

merge-requests/365/head
eidheim 9 years ago
parent
commit
2ebe72f135
  1. 7
      src/debug_lldb.cc

7
src/debug_lldb.cc

@ -59,8 +59,13 @@ void Debug::LLDB::start(const std::string &command, const boost::filesystem::pat
for(size_t c=0;c<=command.size();c++) { for(size_t c=0;c<=command.size();c++) {
if(c==command.size() || (!quote && !double_quote && !symbol && command[c]==' ')) { if(c==command.size() || (!quote && !double_quote && !symbol && command[c]==' ')) {
if(c>0 && start_pos!=std::string::npos) { if(c>0 && start_pos!=std::string::npos) {
if(executable.empty()) if(executable.empty()) {
executable=filesystem::unescape_argument(command.substr(start_pos, c-start_pos)); executable=filesystem::unescape_argument(command.substr(start_pos, c-start_pos));
#ifdef _WIN32
if(remote_host.empty())
executable+=".exe";
#endif
}
else else
arguments.emplace_back(filesystem::unescape_argument(command.substr(start_pos, c-start_pos))); arguments.emplace_back(filesystem::unescape_argument(command.substr(start_pos, c-start_pos)));
start_pos=std::string::npos; start_pos=std::string::npos;

Loading…
Cancel
Save