The delete_breakpoint function tries to check if the breakpoint being deleted is inserted in inferior, and if so, searched for breakpoints that are set at the same address and tries to insert them. However, GDB removes breakpoint from the inferior immediately when inferior is stopped, so this code will never run. Removing this code has no effect on test results. (And generally, if that function needed to insert breakpoints, it should have used insert_breakpoints, instead of duplicating the logic somewhat). OK? - Volodya