aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Utility/Reproducer.cpp
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/source/Utility/Reproducer.cpp
parentecfac6cd2ce0421a48c2e878e8efe745afd0b2e8 (diff)
downloadllvm-936c62422f5dc2d493978f1b99e2218016d8ea13.tar.gz
llvm-936c62422f5dc2d493978f1b99e2218016d8ea13.tar.bz2
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/source/Utility/Reproducer.cpp')
-rw-r--r--lldb/source/Utility/Reproducer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp
index 3fb0624c4fb1..9f749aac36a2 100644
--- a/lldb/source/Utility/Reproducer.cpp
+++ b/lldb/source/Utility/Reproducer.cpp
@@ -51,6 +51,8 @@ llvm::Error Reproducer::Initialize(ReproducerMode mode,
return Error::success();
}
+bool Reproducer::Initialized() { return InstanceImpl().operator bool(); }
+
void Reproducer::Terminate() {
lldbassert(InstanceImpl() && "Already terminated.");
InstanceImpl().reset();