diff options
| author | Bhushan D. Attarde <Bhushan.Attarde@imgtec.com> | 2016-01-27 10:16:30 +0000 |
|---|---|---|
| committer | Bhushan D. Attarde <Bhushan.Attarde@imgtec.com> | 2016-01-27 10:16:30 +0000 |
| commit | df5f0b448cc10e4877f319e9ddd4704fd389f418 (patch) | |
| tree | 980dff3690dd64fec4c367716e67818e9707b4d0 /lldb/source/API/SBInstruction.cpp | |
| parent | 5e45630edfbca796d662253ed25f0538cbfef948 (diff) | |
| download | bcm5719-llvm-df5f0b448cc10e4877f319e9ddd4704fd389f418.tar.gz bcm5719-llvm-df5f0b448cc10e4877f319e9ddd4704fd389f418.zip | |
[LLDB][MIPS] A small fix in GetBreakableLoadAddress() for MIPS
SUMMARY:
Get the load address for the address given by symbol and function.
Earlier, this was done for function only, this patch does it for symbol too.
This patch also adds TestAvoidBreakpointInDelaySlot.py to test this change.
Reviewers: clayborg
Subscribers: labath, zturner, mohit.bhakkad, sagar, jaydeep, lldb-commits
Differential Revision: http://reviews.llvm.org/D16049
llvm-svn: 258919
Diffstat (limited to 'lldb/source/API/SBInstruction.cpp')
| -rw-r--r-- | lldb/source/API/SBInstruction.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp index 36be9480186..a17f3f8dbd5 100644 --- a/lldb/source/API/SBInstruction.cpp +++ b/lldb/source/API/SBInstruction.cpp @@ -160,6 +160,14 @@ SBInstruction::DoesBranch () return false; } +bool +SBInstruction::HasDelaySlot () +{ + if (m_opaque_sp) + return m_opaque_sp->HasDelaySlot (); + return false; +} + void SBInstruction::SetOpaque (const lldb::InstructionSP &inst_sp) { |

