aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-05-15 13:49:01 +0000
committerPavel Labath <labath@google.com>2015-05-15 13:49:01 +0000
commit9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1 (patch)
tree61e37de9a8b1912d195fad220d7762639f7f0857 /llvm/lib/IR/Module.cpp
parentd16af5dfda7501a83cf32323c832bcb00fb3555d (diff)
downloadllvm-9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1.zip
llvm-9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1.tar.gz
llvm-9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1.tar.bz2
[NativeProcessLinux] Fix removal of temporary breakpoints
Summary: There was an issue in NPL, where we attempted removal of temporary breakpoints (used to implement software single stepping), while some threads of the process were running. This is a problem since we currently always use the main thread's ID in the removal ptrace call. Therefore, if the main thread was still running, the ptrace call would fail, and the software breakpoint would remain, causing all kinds of problems. This change removes the breakpoints after all threads have stopped. This fixes TestExitDuringStep on Android arm and can also potentially help in other situations, as previously the breakpoint would not get removed if the thread stopped for another reason. Test Plan: TestExitDuringStep passes, other tests remain unchanged. Reviewers: tberghammer Subscribers: tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D9792 llvm-svn: 237448
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions