Skip to content

Commit d7dbe8f

Browse files
committed
Old name hides class member.
1 parent a490faa commit d7dbe8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Debugger/RemoteDebugger.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ public void FindCodeByBreakpoint(IntPtr address, int size, HardwareBreakpointTri
7373

7474
var fcf = new FoundCodeForm(process, breakpointList[0].Address, trigger);
7575

76-
var breakpoints = new List<IBreakpoint>();
76+
var localBreakpoints = new List<IBreakpoint>();
7777
fcf.Stop += (sender, e) =>
7878
{
79-
lock (breakpoints)
79+
lock (localBreakpoints)
8080
{
81-
foreach (var bp in breakpoints)
81+
foreach (var bp in localBreakpoints)
8282
{
8383
RemoveBreakpoint(bp);
8484
}
8585

86-
breakpoints.Clear();
86+
localBreakpoints.Clear();
8787
}
8888
};
8989

@@ -96,7 +96,7 @@ public void FindCodeByBreakpoint(IntPtr address, int size, HardwareBreakpointTri
9696
try
9797
{
9898
AddBreakpoint(breakpoint);
99-
breakpoints.Add(breakpoint);
99+
localBreakpoints.Add(breakpoint);
100100

101101
fcf.Show();
102102
}
@@ -119,7 +119,7 @@ public void FindCodeByBreakpoint(IntPtr address, int size, HardwareBreakpointTri
119119

120120
breakpoint = new HardwareBreakpoint(split.Address, register, trigger, (HardwareBreakpointSize)split.Size, handler);
121121
AddBreakpoint(breakpoint);
122-
breakpoints.Add(breakpoint);
122+
localBreakpoints.Add(breakpoint);
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)