-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e9cd72
commit 1cdd696
Showing
2 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ifdef _WIN32 | ||
|
||
#include <string> | ||
|
||
#include <libloaderapi.h> | ||
#include <processthreadsapi.h> | ||
#include <windef.h> | ||
#include <windows.h> | ||
|
||
#include "indexer/os/Os.h" | ||
|
||
namespace scip_clang { | ||
|
||
std::string exec(std::string cmd) { | ||
// FIXME(def: windows-support) Implement this if needed for addr2line | ||
return ""; | ||
} | ||
|
||
std::string addr2line(std::string_view programName, void const *const *addr, | ||
int count) { | ||
// FIXME(def: windows-support) | ||
return ""; | ||
} | ||
|
||
std::string getProgramName() { | ||
char buf[MAX_PATH]; | ||
GetModuleFileNameA(nullptr, buf, MAX_PATH); | ||
return buf; | ||
} | ||
|
||
bool setCurrentThreadName(std::string_view name) { | ||
std::wstring wstr = std::wstring(name.begin(), name.end()); | ||
SetThreadDescription(GetCurrentThread(), wstr.c_str()); | ||
return true; | ||
} | ||
|
||
bool amIBeingDebugged() { | ||
// FIXME(def: windows-support) | ||
return false; | ||
} | ||
|
||
bool stopInDebugger() { | ||
// FIXME(def: windows-support) | ||
return false; | ||
} | ||
|
||
} // namespace scip_clang | ||
|
||
#endif |