mirror of
https://github.com/reactos/reactos.git
synced 2025-07-01 10:21:21 +00:00
- Fix a "clever" check in KdpDeleteBreakpointRange that made the routine unable to delete more than one breakpoint in the specified range.
svn path=/trunk/; revision=68790
This commit is contained in:
parent
e816df8cd0
commit
ca5361525f
1 changed files with 8 additions and 5 deletions
|
@ -206,7 +206,10 @@ KdpDeleteBreakpointRange(IN PVOID Base,
|
||||||
IN PVOID Limit)
|
IN PVOID Limit)
|
||||||
{
|
{
|
||||||
ULONG BpIndex;
|
ULONG BpIndex;
|
||||||
BOOLEAN Return = FALSE;
|
BOOLEAN DeletedBreakpoints;
|
||||||
|
|
||||||
|
/* Assume no breakpoints will be deleted */
|
||||||
|
DeletedBreakpoints = FALSE;
|
||||||
|
|
||||||
/* Loop the breakpoint table */
|
/* Loop the breakpoint table */
|
||||||
for (BpIndex = 0; BpIndex < KD_BREAKPOINT_MAX; BpIndex++)
|
for (BpIndex = 0; BpIndex < KD_BREAKPOINT_MAX; BpIndex++)
|
||||||
|
@ -216,13 +219,13 @@ KdpDeleteBreakpointRange(IN PVOID Base,
|
||||||
((KdpBreakpointTable[BpIndex].Address >= Base) &&
|
((KdpBreakpointTable[BpIndex].Address >= Base) &&
|
||||||
(KdpBreakpointTable[BpIndex].Address <= Limit)))
|
(KdpBreakpointTable[BpIndex].Address <= Limit)))
|
||||||
{
|
{
|
||||||
/* Delete it */
|
/* Delete it, and remember if we succeeded at least once */
|
||||||
Return = Return || KdpDeleteBreakpoint(BpIndex + 1);
|
if (KdpDeleteBreakpoint(BpIndex + 1)) DeletedBreakpoints = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return to caller */
|
/* Return whether we deleted anything */
|
||||||
return Return;
|
return DeletedBreakpoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue