diff options
author | Alex Langford <apl@fb.com> | 2019-06-21 19:43:07 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-06-21 19:43:07 +0000 |
commit | 7f9c9f2264235f94b5496281cadcc4a9775dbd8f (patch) | |
tree | f3818af590c4ba9fa489cd7608295d057673e250 /lldb/source/Breakpoint/BreakpointPrecondition.cpp | |
parent | 4649a051bf0b80732ebe805c65a40756e883df6a (diff) | |
download | bcm5719-llvm-7f9c9f2264235f94b5496281cadcc4a9775dbd8f.tar.gz bcm5719-llvm-7f9c9f2264235f94b5496281cadcc4a9775dbd8f.zip |
[Target] Decouple ObjCLanguageRuntime from LanguageRuntime
Summary:
ObjCLanguageRuntime was being pulled into LanguageRuntime because of
Breakpoint Preconditions. If we move BreakpointPrecondition out of Breakpoint,
we can extend the LanguageRuntime plugin interface so that LanguageRuntimes
can give us a BreakpointPrecondition for exceptions.
Differential Revision: https://reviews.llvm.org/D63181
llvm-svn: 364098
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointPrecondition.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointPrecondition.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/BreakpointPrecondition.cpp b/lldb/source/Breakpoint/BreakpointPrecondition.cpp new file mode 100644 index 00000000000..a387c75c835 --- /dev/null +++ b/lldb/source/Breakpoint/BreakpointPrecondition.cpp @@ -0,0 +1,26 @@ +//===-- BreakpointPrecondition.cpp ------------------------------*- 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 +// +//===----------------------------------------------------------------------===// + +#include "lldb/Breakpoint/BreakpointPrecondition.h" +#include "lldb/Utility/Status.h" + +using namespace lldb_private; + +bool BreakpointPrecondition::EvaluatePrecondition( + StoppointCallbackContext &context) { + return false; +} + +void BreakpointPrecondition::GetDescription(Stream &stream, + lldb::DescriptionLevel level) {} + +Status BreakpointPrecondition::ConfigurePrecondition(Args &args) { + Status error; + error.SetErrorString("Base breakpoint precondition has no options."); + return error; +} |