summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-07-01 15:11:10 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-07-01 15:11:10 +0000
commitbaf64b65056954a887e54e55e4f76f3a12230682 (patch)
treedceafe72a8d2d301d91c6e799b1279778efac8f3 /lldb/packages/Python/lldbsuite/test
parent2b2ad9342e65042baefc379e4a70774d8e538e84 (diff)
downloadbcm5719-llvm-baf64b65056954a887e54e55e4f76f3a12230682.tar.gz
bcm5719-llvm-baf64b65056954a887e54e55e4f76f3a12230682.zip
[lldb] [Process/NetBSD] Fix segfault when handling watchpoint
Fix the watchpoint/breakpoint code to search for matching thread entry in m_threads explicitly rather than assuming that it will be present at specified index. The previous code segfault since it wrongly assumed that the index will match LWP ID which was incorrect even for a single thread (where index was 0 and LWP ID was 1). While fixing that off-by-one error would help for this specific task, I believe it is better to be explicit in what we are searching for. Differential Revision: https://reviews.llvm.org/D63791 llvm-svn: 364780
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud