diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-08 17:13:54 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-08 17:13:54 +0000 |
commit | 8b4000f13b303cc154136abc74c55670673e2a96 (patch) | |
tree | cde70521176ae2fac67cb037f0a876972b9cc5f0 /source/API/SBInstruction.cpp | |
parent | 52fd8de56a8a12201c1e6188e1f34d28c3d3398d (diff) |
Notes
Diffstat (limited to 'source/API/SBInstruction.cpp')
-rw-r--r-- | source/API/SBInstruction.cpp | 7 |
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(); |