-/* Is the a breakpoint at Address */
-static int
-IsBreakpoint(unsigned int Address)
-{
- int Index = 0;
- while (Index < NbBreakpoints && (Breakpoints[Index] != Address))
- Index++;
-
- return ((Breakpoints[Index] == Address) && (Index < NbBreakpoints));
-}
-
-/* Show Breakpoints list */
-static void
-ShowBreakpoints(void)
-{
- int Index;
-
- for (Index = 0; Index < NbBreakpoints ; Index++)
- printf("Breakpoint at Address = %.4X\n", Breakpoints[Index]);
-}
-
-/* Clear Breakpoint at Address from list */
-static void
-ClearBreakpoint(unsigned int Address)
-{
- int Index = 0;
- while ((Index < NbBreakpoints) && (Breakpoints[Index] != Address))
- Index++;
- if (Breakpoints[Index] != Address)
- return;
- Breakpoints[Index] = Breakpoints[NbBreakpoints - 1];
- NbBreakpoints--;
-}
-
-/* Set Breakpoint at Address from list */
-static void
-SetBreakpoint(unsigned int Address)
-{
- if (IsBreakpoint(Address))
- return;
- if (NbBreakpoints < MAXBP)
- Breakpoints[NbBreakpoints++] = Address;
-}
-