Revert "[lldb] [mostly NFC] Large WP foundation: WatchpointResources (#68845)"
...and follow ups. As it has caused test failures on Linux Arm and AArch64: https://lab.llvm.org/buildbot/#/builders/96/builds/49126 https://lab.llvm.org/buildbot/#/builders/17/builds/45824 ``` lldb-shell :: Subprocess/clone-follow-child-wp.test lldb-shell :: Subprocess/fork-follow-child-wp.test lldb-shell :: Subprocess/vfork-follow-child-wp.test ``` This reverts commita6c62bf1a4, commita0a1ff3ab4and commitfc6b72523f.
This commit is contained in:
@@ -181,7 +181,7 @@ size_t SBThread::GetStopReasonDataCount() {
|
||||
exe_ctx.GetProcessPtr()->GetBreakpointSiteList().FindByID(
|
||||
site_id));
|
||||
if (bp_site_sp)
|
||||
return bp_site_sp->GetNumberOfConstituents() * 2;
|
||||
return bp_site_sp->GetNumberOfOwners() * 2;
|
||||
else
|
||||
return 0; // Breakpoint must have cleared itself...
|
||||
} break;
|
||||
@@ -241,7 +241,7 @@ uint64_t SBThread::GetStopReasonDataAtIndex(uint32_t idx) {
|
||||
if (bp_site_sp) {
|
||||
uint32_t bp_index = idx / 2;
|
||||
BreakpointLocationSP bp_loc_sp(
|
||||
bp_site_sp->GetConstituentAtIndex(bp_index));
|
||||
bp_site_sp->GetOwnerAtIndex(bp_index));
|
||||
if (bp_loc_sp) {
|
||||
if (idx & 1) {
|
||||
// Odd idx, return the breakpoint location ID
|
||||
|
||||
Reference in New Issue
Block a user