Browse Source

Now sets LLDB_DEBUGSERVER_PATH in debug.cc on OS X

merge-requests/365/head
eidheim 10 years ago
parent
commit
8bf2b21e96
  1. 7
      src/debug.cc

7
src/debug.cc

@ -1,5 +1,6 @@
#include "debug.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "terminal.h"
@ -22,7 +23,11 @@ void log(const char *msg, void *) {
cout << "debugger log: " << msg << endl;
}
Debug::Debug(): listener("juCi++ lldb listener"), state(lldb::StateType::eStateInvalid), buffer_size(131072) {}
Debug::Debug(): listener("juCi++ lldb listener"), state(lldb::StateType::eStateInvalid), buffer_size(131072) {
#ifdef __APPLE__
setenv("LLDB_DEBUGSERVER_PATH", "/usr/local/opt/llvm/bin/debugserver", 0);
#endif
}
void Debug::start(std::shared_ptr<std::vector<std::pair<boost::filesystem::path, int> > > breakpoints, const boost::filesystem::path &executable,
const boost::filesystem::path &path, std::function<void(int exit_status)> callback,

Loading…
Cancel
Save