Pass tempflag to ada_catchpoint constructor
authorTom Tromey <tromey@adacore.com>
Thu, 16 Feb 2023 17:14:32 +0000 (10:14 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 12 Jun 2023 17:51:52 +0000 (11:51 -0600)
This is a minor cleanup to pass tempflag to the ada_catchpoint
constructor.

gdb/ada-lang.c

index 667ef2a60e943143fbd3eb0dc245bc0665dc30e8..fc22b3d2ebae47a3b5a1ac9019cf51057f9d4b31 100644 (file)
@@ -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;