From 8bf2b21e9629495fbf2ee1a46b25f86be5de13f2 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 1 Jan 2016 23:02:49 +0100 Subject: [PATCH] Now sets LLDB_DEBUGSERVER_PATH in debug.cc on OS X --- src/debug.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/debug.cc b/src/debug.cc index a7c453b..51bbd59 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1,5 +1,6 @@ #include "debug.h" #include +#include #include #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 > > breakpoints, const boost::filesystem::path &executable, const boost::filesystem::path &path, std::function callback,