@@ -1800,20 +1800,6 @@ ThreadSP ProcessGDBRemote::SetThreadStopInfo(
1800
1800
watch_id_t watch_id = LLDB_INVALID_WATCH_ID;
1801
1801
bool silently_continue = false ;
1802
1802
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
- }
1817
1803
if (wp_hit_addr != LLDB_INVALID_ADDRESS) {
1818
1804
wp_resource_sp =
1819
1805
m_watchpoint_resource_list.FindByAddress (wp_hit_addr);
@@ -2261,10 +2247,6 @@ StateType ProcessGDBRemote::SetThreadStopInfo(StringExtractor &stop_packet) {
2261
2247
2262
2248
WatchpointResourceSP wp_resource_sp =
2263
2249
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 ();
2268
2250
2269
2251
// Rewrite gdb standard watch/rwatch/awatch to
2270
2252
// "reason:watchpoint" + "description:ADDR",
0 commit comments