diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-06-25 06:01:20 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-06-25 06:01:20 +0000 |
commit | 829713c25815c69313698a35dcd3a3be9132da5a (patch) | |
tree | 05013c88d70c4afaa289678b36e7ccc4514170a9 /lldb/tools/debugserver/source/MacOSX/MachThread.cpp | |
parent | 3de032a3b6a508136df3fa6519d9a29c416a1fbe (diff) | |
download | bcm5719-llvm-829713c25815c69313698a35dcd3a3be9132da5a.tar.gz bcm5719-llvm-829713c25815c69313698a35dcd3a3be9132da5a.zip |
Remove some unnecessary uses of nub_break_t in the arm specific
support files for debugserver to fix a build failure for arm. Also
remove some of the code used for software-driven single instruction
stepping; this is slowly being yanked out and these particular bits
overlap with the nub_break_t going away.
llvm-svn: 184828
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachThread.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp index a32161f4eb0..5a8b79a19e9 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp @@ -453,18 +453,7 @@ MachThread::ShouldStop(bool &step_more) bool MachThread::IsStepping() { -#if ENABLE_AUTO_STEPPING_OVER_BP - // Return true if this thread is currently being stepped. - // MachThread::ThreadWillResume currently determines this by looking if we - // have been asked to single step, or if we are at a breakpoint instruction - // and have been asked to resume. In the latter case we need to disable the - // breakpoint we are at, single step, re-enable and continue. - nub_state_t state = GetState(); - return ((state == eStateStepping) || - (state == eStateRunning && NUB_BREAK_ID_IS_VALID(CurrentBreakpoint()))); -#else return GetState() == eStateStepping; -#endif } @@ -493,52 +482,10 @@ MachThread::ThreadDidStop() // Update the basic information for a thread MachThread::GetBasicInfo(m_mach_port_number, &m_basic_info); -#if ENABLE_AUTO_STEPPING_OVER_BP - // See if we were at a breakpoint when we last resumed that we disabled, - // re-enable it. - nub_break_t breakID = CurrentBreakpoint(); - - if (NUB_BREAK_ID_IS_VALID(breakID)) - { - m_process->EnableBreakpoint(breakID); - if (m_basic_info.suspend_count > 0) - { - SetState(eStateSuspended); - } - else - { - // If we last were at a breakpoint and we single stepped, our state - // will be "running" to indicate we need to continue after stepping - // over the breakpoint instruction. If we step over a breakpoint - // instruction, we need to stop. - if (GetState() == eStateRunning) - { - // Leave state set to running so we will continue automatically - // from this breakpoint - } - else - { - SetState(eStateStopped); - } - } - } - else - { - if (m_basic_info.suspend_count > 0) - { - SetState(eStateSuspended); - } - else - { - SetState(eStateStopped); - } - } -#else if (m_basic_info.suspend_count > 0) SetState(eStateSuspended); else SetState(eStateStopped); -#endif return true; } |