Skip to content

Commit 243af47

Browse files
committed
Remove orphaned wp hardware index tracking
1 parent 4764ffe commit 243af47

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,20 +1800,6 @@ ThreadSP ProcessGDBRemote::SetThreadStopInfo(
18001800
watch_id_t watch_id = LLDB_INVALID_WATCH_ID;
18011801
bool silently_continue = false;
18021802
WatchpointResourceSP wp_resource_sp;
1803-
if (wp_hw_index != LLDB_INVALID_WATCHPOINT_RESOURCE_ID) {
1804-
wp_resource_sp = m_watchpoint_resource_list.FindByID(wp_hw_index);
1805-
if (wp_resource_sp) {
1806-
// If we were given an access address, and the Resource we
1807-
// found by watchpoint register index does not contain that
1808-
// address, then the wp_resource_id's have not tracked the
1809-
// hardware watchpoint registers correctly, discard this
1810-
// Resource found by ID and look it up by access address.
1811-
if (wp_hit_addr != LLDB_INVALID_ADDRESS &&
1812-
!wp_resource_sp->Contains(wp_hit_addr)) {
1813-
wp_resource_sp.reset();
1814-
}
1815-
}
1816-
}
18171803
if (wp_hit_addr != LLDB_INVALID_ADDRESS) {
18181804
wp_resource_sp =
18191805
m_watchpoint_resource_list.FindByAddress(wp_hit_addr);
@@ -2261,10 +2247,6 @@ StateType ProcessGDBRemote::SetThreadStopInfo(StringExtractor &stop_packet) {
22612247

22622248
WatchpointResourceSP wp_resource_sp =
22632249
m_watchpoint_resource_list.FindByAddress(wp_addr);
2264-
uint32_t wp_index = LLDB_INVALID_INDEX32;
2265-
2266-
if (wp_resource_sp)
2267-
wp_index = wp_resource_sp->GetID();
22682250

22692251
// Rewrite gdb standard watch/rwatch/awatch to
22702252
// "reason:watchpoint" + "description:ADDR",

0 commit comments

Comments
 (0)