aboutsummaryrefslogtreecommitdiff
path: root/source/API/SBInstruction.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-08 17:13:54 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-08 17:13:54 +0000
commit8b4000f13b303cc154136abc74c55670673e2a96 (patch)
treecde70521176ae2fac67cb037f0a876972b9cc5f0 /source/API/SBInstruction.cpp
parent52fd8de56a8a12201c1e6188e1f34d28c3d3398d (diff)
downloadsrc-8b4000f13b303cc154136abc74c55670673e2a96.tar.gz
src-8b4000f13b303cc154136abc74c55670673e2a96.zip
Vendor import of lldb trunk r302418:vendor/lldb/lldb-trunk-r302418
Notes
Notes: svn path=/vendor/lldb/dist/; revision=317959 svn path=/vendor/lldb/lldb-trunk-r302418/; revision=317960; tag=vendor/lldb/lldb-trunk-r302418
Diffstat (limited to 'source/API/SBInstruction.cpp')
-rw-r--r--source/API/SBInstruction.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/API/SBInstruction.cpp b/source/API/SBInstruction.cpp
index c47307c733a8..8b7deb7011be 100644
--- a/source/API/SBInstruction.cpp
+++ b/source/API/SBInstruction.cpp
@@ -176,6 +176,13 @@ bool SBInstruction::HasDelaySlot() {
return false;
}
+bool SBInstruction::CanSetBreakpoint () {
+ lldb::InstructionSP inst_sp(GetOpaque());
+ if (inst_sp)
+ return inst_sp->CanSetBreakpoint();
+ return false;
+}
+
lldb::InstructionSP SBInstruction::GetOpaque() {
if (m_opaque_sp)
return m_opaque_sp->GetSP();