Skip to content

Commit bf3ba39

Browse files
committed
Additional large watchpoint NFC changes for stable/20230725
1 parent 00aeac5 commit bf3ba39

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,6 @@ ThreadSP ProcessGDBRemote::SetThreadStopInfo(
17841784
// addresses should be provided as \a wp_addr.
17851785
StringExtractor desc_extractor(description.c_str());
17861786
addr_t wp_addr = desc_extractor.GetU64(LLDB_INVALID_ADDRESS);
1787-
uint32_t wp_index = desc_extractor.GetU32(LLDB_INVALID_INDEX32);
17881787
addr_t wp_hit_addr = desc_extractor.GetU64(LLDB_INVALID_ADDRESS);
17891788
watch_id_t watch_id = LLDB_INVALID_WATCH_ID;
17901789
bool silently_continue = false;
@@ -2243,7 +2242,7 @@ StateType ProcessGDBRemote::SetThreadStopInfo(StringExtractor &stop_packet) {
22432242
// which is parsed in SetThreadStopInfo.
22442243
reason = "watchpoint";
22452244
StreamString ostr;
2246-
ostr.Printf("%" PRIu64 " %" PRIu32, wp_addr, wp_index);
2245+
ostr.Printf("%" PRIu64, wp_addr);
22472246
description = std::string(ostr.GetString());
22482247
} else if (key.compare("library") == 0) {
22492248
auto error = LoadModules();

lldb/source/Target/Process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,15 +745,15 @@ static bool
745745
BreakpointSiteMatchesREPLBreakpoint(const BreakpointSiteSP &bp_site_sp) {
746746
if (bp_site_sp) {
747747
size_t owner_idx = 0;
748-
BreakpointLocationSP bp_loc_sp = bp_site_sp->GetOwnerAtIndex(owner_idx);
748+
BreakpointLocationSP bp_loc_sp = bp_site_sp->GetConstituentAtIndex(owner_idx);
749749
while (bp_loc_sp) {
750750
Breakpoint &bp = bp_loc_sp->GetBreakpoint();
751751
if (bp.IsInternal()) {
752752
const char *kind = bp.GetBreakpointKind();
753753
if (kind && strcmp(kind, "REPL") == 0)
754754
return true;
755755
}
756-
bp_loc_sp = bp_site_sp->GetOwnerAtIndex(++owner_idx);
756+
bp_loc_sp = bp_site_sp->GetConstituentAtIndex(++owner_idx);
757757
}
758758
}
759759
return false;

lldb/source/Target/ThreadPlanCallFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ bool ThreadPlanCallFunction::BreakpointsExplainStop() {
489489
}
490490
if (m_error_backstop_bp_sp) {
491491
uint64_t break_site_id = stop_info_sp->GetValue();
492-
if (m_process.GetBreakpointSiteList().BreakpointSiteContainsBreakpoint(
492+
if (m_process.GetBreakpointSiteList().StopPointSiteContainsBreakpoint(
493493
break_site_id, m_error_backstop_bp_sp->GetID())) {
494494
// Our expression threw an uncaught exception. That will happen in REPL
495495
// & Playground, though not in

lldb/source/Target/ThreadPlanStepInRange.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ bool ThreadPlanStepInRange::StepInDeepBreakpointExplainsStop(
347347
// at this site:
348348
explains_stop = true;
349349
hit_step_in_deep_bp = true;
350-
size_t num_owners = bp_site_sp->GetNumberOfOwners();
350+
size_t num_owners = bp_site_sp->GetNumberOfConstituents();
351351

352352
// If all the owners are internal, then we are probably just stepping over
353353
// this range from multiple threads,
@@ -361,7 +361,7 @@ bool ThreadPlanStepInRange::StepInDeepBreakpointExplainsStop(
361361
continue;
362362

363363
for (size_t i = 0; i < num_owners; i++) {
364-
BreakpointLocationSP owner_loc_sp(bp_site_sp->GetOwnerAtIndex(i));
364+
BreakpointLocationSP owner_loc_sp(bp_site_sp->GetConstituentAtIndex(i));
365365
Breakpoint &owner_bp(owner_loc_sp->GetBreakpoint());
366366
if (owner_loc_sp->ValidForThisThread(GetThread()) &&
367367
!owner_bp.IsInternal()) {

0 commit comments

Comments
 (0)