[06/25] Turn should_stop_exception into a method of ada_catchpoint
Commit Message
This turns the should_stop_exception function in ada-lang.c into a
method of ada_catchpoint.
---
gdb/ada-lang.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
@@ -12186,6 +12186,12 @@ struct ada_catchpoint : public code_breakpoint
void print_mention () const override;
void print_recreate (struct ui_file *fp) const override;
+ /* A helper function for check_status. Returns true if we should
+ stop for this breakpoint hit. If the user specified a specific
+ exception, we only want to cause a stop if the program thrown
+ that exception. */
+ bool should_stop_exception (const struct bp_location *bl) const;
+
/* The name of the specific exception the user specified. */
std::string excep_string;
@@ -12275,12 +12281,10 @@ ada_catchpoint::allocate_location ()
return new ada_catchpoint_location (this);
}
-/* Returns true if we should stop for this breakpoint hit. If the
- user specified a specific exception, we only want to cause a stop
- if the program thrown that exception. */
+/* See declaration. */
-static bool
-should_stop_exception (const struct bp_location *bl)
+bool
+ada_catchpoint::should_stop_exception (const struct bp_location *bl) const
{
struct ada_catchpoint *c = (struct ada_catchpoint *) bl->owner;
const struct ada_catchpoint_location *ada_loc