Browse Source

Remote debugging working with lldb-gdbserver at least. Fixes #238

merge-requests/365/head
eidheim 10 years ago
parent
commit
a787e1422c
  1. 3
      src/debug_clang.cc

3
src/debug_clang.cc

@ -114,12 +114,15 @@ void Debug::Clang::start(const std::string &command, const boost::filesystem::pa
if(listener->GetNextEvent(event)) {
if((event.GetType() & lldb::SBProcess::eBroadcastBitStateChanged)>0) {
auto state=process->GetStateFromEvent(event);
this->state=state;
if(state==lldb::StateType::eStateConnected)
break;
}
}
}
process->RemoteLaunch(nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, lldb::eLaunchFlagNone, false, error);
if(!error.Fail())
process->Continue();
}
else
process = std::unique_ptr<lldb::SBProcess>(new lldb::SBProcess(target.Launch(*listener, argv, const_cast<const char**>(environ), nullptr, nullptr, nullptr, path.string().c_str(), lldb::eLaunchFlagNone, false, error)));

Loading…
Cancel
Save