Change breakpoint_re_set_default to a method

breakpoint_re_set_default is only ever called from breakpoint re_set
methods, so make it a protected method on code_breakpoint.
This commit is contained in:
Tom Tromey
2022-05-21 09:57:43 -06:00
parent 8ad969a3fe
commit b3d5660a7a
2 changed files with 13 additions and 10 deletions

View File

@@ -886,6 +886,11 @@ struct code_breakpoint : public breakpoint
std::vector<symtab_and_line> decode_location_spec
(struct location_spec *locspec,
struct program_space *search_pspace) override;
protected:
/* Helper method that does the basic work of re_set. */
void re_set_default ();
};
/* An instance of this type is used to represent a watchpoint,