summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/interface
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-02-21 22:26:16 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-02-21 22:26:16 +0000
commit936c62422f5dc2d493978f1b99e2218016d8ea13 (patch)
tree9f3ba4139206711f46f88ca7779245a9a8407bbb /lldb/scripts/interface
parentecfac6cd2ce0421a48c2e878e8efe745afd0b2e8 (diff)
downloadbcm5719-llvm-936c62422f5dc2d493978f1b99e2218016d8ea13.tar.gz
bcm5719-llvm-936c62422f5dc2d493978f1b99e2218016d8ea13.zip
[Reproducers] Initialize reproducers before initializing the debugger.
As per the discussion on the mailing list: http://lists.llvm.org/pipermail/lldb-commits/Week-of-Mon-20190218/048007.html This commit implements option (3): > Go back to initializing the reproducer before the rest of the debugger. > The method wouldn't be instrumented and guarantee no other SB methods are > called or SB objects are constructed. The initialization then becomes part > of the replay. Differential revision: https://reviews.llvm.org/D58410 llvm-svn: 354631
Diffstat (limited to 'lldb/scripts/interface')
-rw-r--r--lldb/scripts/interface/SBDebugger.i4
-rw-r--r--lldb/scripts/interface/SBInitializerOptions.i23
2 files changed, 2 insertions, 25 deletions
diff --git a/lldb/scripts/interface/SBDebugger.i b/lldb/scripts/interface/SBDebugger.i
index 5c9ebaa6f2a..a3ecc157359 100644
--- a/lldb/scripts/interface/SBDebugger.i
+++ b/lldb/scripts/interface/SBDebugger.i
@@ -122,8 +122,8 @@ public:
static void
Initialize();
- static void
- Initialize(lldb::SBInitializerOptions& options);
+ static SBError
+ InitializeWithErrorHandling();
static void
Terminate();
diff --git a/lldb/scripts/interface/SBInitializerOptions.i b/lldb/scripts/interface/SBInitializerOptions.i
deleted file mode 100644
index 530a18e76f8..00000000000
--- a/lldb/scripts/interface/SBInitializerOptions.i
+++ /dev/null
@@ -1,23 +0,0 @@
-//===-- SWIG Interface for SBInitializerOptions -----------------*- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-namespace lldb {
-
-class SBInitializerOptions
-{
-public:
- SBInitializerOptions ();
- SBInitializerOptions (const lldb::SBInitializerOptions &rhs);
- ~SBInitializerOptions();
-
- void SetCaptureReproducer(bool b);
- void SetReplayReproducer(bool b);
- void SetReproducerPath(const char* path);
-};
-
-} // namespace lldb
OpenPOWER on IntegriCloud