Convert say_where to method on code_breakpoint

'say_where' is only useful (and only called for) code breakpoints, so
convert it to be a protected method on code_breakpoint.
This commit is contained in:
Tom Tromey
2023-01-10 08:17:28 -07:00
parent 8ec0b0b5df
commit 7987c4636a
2 changed files with 28 additions and 25 deletions

View File

@@ -898,6 +898,10 @@ protected:
(location_spec *locspec,
struct program_space *search_pspace,
int *found);
/* Helper for breakpoint and tracepoint breakpoint->mention
callbacks. */
void say_where () const;
};
/* An instance of this type is used to represent a watchpoint,