From: Tom Tromey Date: Thu, 16 Feb 2023 17:14:32 +0000 (-0700) Subject: Pass tempflag to ada_catchpoint constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc3f8fa94a1c818710d05a2682e9fd998055bba5;p=binutils-gdb.git Pass tempflag to ada_catchpoint constructor This is a minor cleanup to pass tempflag to the ada_catchpoint constructor. --- 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;