forked from OSchip/llvm-project
[lldb-server] Use llgs namespace to avoid conflicts with Win32 API
llvm-svn: 357496
This commit is contained in:
parent
b622809b2d
commit
41a7950cfb
|
@ -36,6 +36,7 @@ static void display_usage(const char *progname) {
|
|||
int main_gdbserver(int argc, char *argv[]);
|
||||
int main_platform(int argc, char *argv[]);
|
||||
|
||||
namespace llgs {
|
||||
static void initialize() {
|
||||
if (auto e = g_debugger_lifetime->Initialize(
|
||||
llvm::make_unique<SystemInitializerLLGS>(), nullptr))
|
||||
|
@ -43,6 +44,7 @@ static void initialize() {
|
|||
}
|
||||
|
||||
static void terminate() { g_debugger_lifetime->Terminate(); }
|
||||
} // namespace llgs
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// main
|
||||
|
@ -61,14 +63,14 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
switch (argv[1][0]) {
|
||||
case 'g':
|
||||
initialize();
|
||||
llgs::initialize();
|
||||
main_gdbserver(argc, argv);
|
||||
terminate();
|
||||
llgs::terminate();
|
||||
break;
|
||||
case 'p':
|
||||
initialize();
|
||||
llgs::initialize();
|
||||
main_platform(argc, argv);
|
||||
terminate();
|
||||
llgs::terminate();
|
||||
break;
|
||||
case 'v':
|
||||
fprintf(stderr, "%s\n", lldb_private::GetVersion());
|
||||
|
|
Loading…
Reference in New Issue