From: Tom Tromey Date: Thu, 16 Feb 2023 17:25:23 +0000 (-0700) Subject: Remove exception_catchpoint::resources_needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c52e4861c61926a1e22e56837487b819e2dc3cc8;p=binutils-gdb.git Remove exception_catchpoint::resources_needed exception_catchpoint::resources_needed has a FIXME comment that I think makes this method obsolete. Also, I note that similar catchpoints, for example Ada catchpoints, don't have this method. This patch removes the method. Regression tested on x86-64 Fedora 36. --- diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c index ab7899e2b9c..457446efbc6 100644 --- a/gdb/break-catch-throw.c +++ b/gdb/break-catch-throw.c @@ -94,13 +94,6 @@ struct exception_catchpoint : public code_breakpoint void check_status (struct bpstat *bs) override; struct bp_location *allocate_location () override; - /* FIXME this is temporary - until ordinary breakpoints have been - converted. */ - int resources_needed (const struct bp_location *) override - { - return 1; - } - /* The kind of exception catchpoint. */ enum exception_event_kind kind;