summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-server/lldb-server.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-12-03 17:28:29 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-12-03 17:28:29 +0000
commit15eacd741faa5ec75ef55d82db3486cbaf91f46f (patch)
tree4daa8934087c40d450d390c3fbee9c3b28b36bed /lldb/tools/lldb-server/lldb-server.cpp
parent8918a511a1a53cc568b248428fb75c39b1949001 (diff)
downloadbcm5719-llvm-15eacd741faa5ec75ef55d82db3486cbaf91f46f.tar.gz
bcm5719-llvm-15eacd741faa5ec75ef55d82db3486cbaf91f46f.zip
[Reproducers] Change how reproducers are initialized.
This patch changes the way the reproducer is initialized. Rather than making changes at run time we now do everything at initialization time. To make this happen we had to introduce initializer options and their SB variant. This allows us to tell the initializer that we're running in reproducer capture/replay mode. Because of this change we also had to alter our testing strategy. We cannot reinitialize LLDB when using the dotest infrastructure. Instead we use lit and invoke two instances of the driver. Another consequence is that we can no longer enable capture or replay through commands. This was bound to go away form the beginning, but I had something in mind where you could enable/disable specific providers. However this seems like it adds very little value right now so the corresponding commands were removed. Finally this change also means you now have to control this through the driver, for which I replaced --reproducer with --capture and --replay to differentiate between the two modes. Differential revision: https://reviews.llvm.org/D55038 llvm-svn: 348152
Diffstat (limited to 'lldb/tools/lldb-server/lldb-server.cpp')
-rw-r--r--lldb/tools/lldb-server/lldb-server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/tools/lldb-server/lldb-server.cpp b/lldb/tools/lldb-server/lldb-server.cpp
index f05c96cfaa9..c924fa22f31 100644
--- a/lldb/tools/lldb-server/lldb-server.cpp
+++ b/lldb/tools/lldb-server/lldb-server.cpp
@@ -38,8 +38,9 @@ int main_gdbserver(int argc, char *argv[]);
int main_platform(int argc, char *argv[]);
static void initialize() {
- g_debugger_lifetime->Initialize(llvm::make_unique<SystemInitializerLLGS>(),
- nullptr);
+ if (auto e = g_debugger_lifetime->Initialize(
+ llvm::make_unique<SystemInitializerLLGS>(), {}, nullptr))
+ llvm::consumeError(std::move(e));
}
static void terminate() { g_debugger_lifetime->Terminate(); }
OpenPOWER on IntegriCloud