From dc3f8fa94a1c818710d05a2682e9fd998055bba5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 16 Feb 2023 10:14:32 -0700 Subject: [PATCH] Pass tempflag to ada_catchpoint constructor This is a minor cleanup to pass tempflag to the ada_catchpoint constructor. --- gdb/ada-lang.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 667ef2a60e9..fc22b3d2eba 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -12067,7 +12067,7 @@ struct ada_catchpoint : public code_breakpoint bool tempflag, bool enabled, bool from_tty) - : code_breakpoint (gdbarch_, bp_catchpoint), + : code_breakpoint (gdbarch_, bp_catchpoint, tempflag), m_kind (kind) { add_location (sal); @@ -12096,7 +12096,6 @@ struct ada_catchpoint : public code_breakpoint } enable_state = enabled ? bp_enabled : bp_disabled; - disposition = tempflag ? disp_del : disp_donttouch; locspec = string_to_location_spec (&addr_string_, language_def (language_ada)); language = language_ada; -- 2.30.2