diff options
author | Ted Woodward <ted.woodward@codeaurora.org> | 2015-05-11 21:12:33 +0000 |
---|---|---|
committer | Ted Woodward <ted.woodward@codeaurora.org> | 2015-05-11 21:12:33 +0000 |
commit | e76e7e9369ca1b8309d15e26b31a2bf24b311ed7 (patch) | |
tree | 120d6affb5b7f5e56816122427bede3c1a61607c /lldb/source/Target/ThreadPlanStepRange.cpp | |
parent | 5b202966f5e7dec49055fffd4b6eea005530b0bc (diff) | |
download | bcm5719-llvm-e76e7e9369ca1b8309d15e26b31a2bf24b311ed7.tar.gz bcm5719-llvm-e76e7e9369ca1b8309d15e26b31a2bf24b311ed7.zip |
Add Hexagon packet support to ThreadPlanStepRange
Summary:
Hexagon is a VLIW processor. It can execute multiple instructions at once, called a packet. Breakpoints need to be alone in a packet. This patch will make sure that temporary breakpoints used for stepping are set at the start of a packet, which will put the breakpoint in a packet by itself.
Patch by Deepak Panickal of CodePlay and Ted Woodward of Qualcomm.
Reviewers: deepak2427, clayborg
Reviewed By: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D9437
llvm-svn: 237047
Diffstat (limited to 'lldb/source/Target/ThreadPlanStepRange.cpp')
-rw-r--r-- | lldb/source/Target/ThreadPlanStepRange.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadPlanStepRange.cpp b/lldb/source/Target/ThreadPlanStepRange.cpp index 55f2c2b8308..324f5a7c653 100644 --- a/lldb/source/Target/ThreadPlanStepRange.cpp +++ b/lldb/source/Target/ThreadPlanStepRange.cpp @@ -380,8 +380,9 @@ ThreadPlanStepRange::SetNextBranchBreakpoint () return false; else { + Target &target = GetThread().GetProcess()->GetTarget(); uint32_t branch_index; - branch_index = instructions->GetIndexOfNextBranchInstruction (pc_index); + branch_index = instructions->GetIndexOfNextBranchInstruction (pc_index, target); Address run_to_address; |