Remove most fields from breakpoint_ops

At this point, all implementations of breakpoints use the vtable.  So,
we can now remove most function pointers from breakpoint_ops and
switch to using methods directly in the callers.  Only the two "static
virtual" methods remain in breakpoint_ops.
This commit is contained in:
Tom Tromey
2022-01-16 19:13:55 -07:00
parent b3316ff153
commit c47614fef9
3 changed files with 30 additions and 304 deletions

View File

@@ -92,7 +92,7 @@ solib_catchpoint::breakpoint_hit (const struct bp_location *bl,
for (bp_location *other_bl : other->locations ())
{
if (other->ops->breakpoint_hit (other_bl, aspace, bp_addr, ws))
if (other->breakpoint_hit (other_bl, aspace, bp_addr, ws))
return 1;
}
}