diff options
| author | Tamas Berghammer <tberghammer@google.com> | 2015-04-22 10:00:23 +0000 |
|---|---|---|
| committer | Tamas Berghammer <tberghammer@google.com> | 2015-04-22 10:00:23 +0000 |
| commit | e7708688baff20eb8ed64c9bb7142ac0bd67081e (patch) | |
| tree | 292ec085b7316a6fbc25370aa643e2eeb1928dd8 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.h | |
| parent | 701db3674497f3a2d91613feee805cf01922c054 (diff) | |
| download | llvm-e7708688baff20eb8ed64c9bb7142ac0bd67081e.zip llvm-e7708688baff20eb8ed64c9bb7142ac0bd67081e.tar.gz llvm-e7708688baff20eb8ed64c9bb7142ac0bd67081e.tar.bz2 | |
Fix signle stepping on arm when multiple thread is involved
On linux-arm we use software single stepping where setting the new
breakpoint is only possible while the process is in stopped state.
This CL moves the setup code for single stepping form the SigneStep
operation into the Resum method to avoid an error when the process
already started when we want to step one of the thread.
Differential revision: http://reviews.llvm.org/D9108
llvm-svn: 235494
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.h')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h index 303a190..c0f68be 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h @@ -277,6 +277,12 @@ namespace process_linux { void MonitorSignal(const siginfo_t *info, lldb::pid_t pid, bool exited); + bool + SupportHardwareSingleStepping() const; + + Error + SetupSoftwareSingleStepping(NativeThreadProtocolSP thread_sp); + #if 0 static ::ProcessMessage::CrashReason GetCrashReasonForSIGSEGV(const siginfo_t *info); |
