]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Rename parameter of create_ada_exception_catchpoint
authorTom Tromey <tromey@adacore.com>
Thu, 16 Feb 2023 17:27:26 +0000 (10:27 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 16 Feb 2023 17:29:11 +0000 (10:29 -0700)
create_ada_exception_catchpoint has a parameter named "disabled", but
both its callers and callees use it to mean "enabled".  This is
confusing, so this patch renames the parameter.

gdb/ada-lang.c
gdb/ada-lang.h

index b5afba30b4f234003d20674273fc30aff43b3bd7..eb81d737ca08c982264a0078e6a236ccc9a22718 100644 (file)
@@ -12783,7 +12783,7 @@ create_ada_exception_catchpoint (struct gdbarch *gdbarch,
                                 const std::string &excep_string,
                                 const std::string &cond_string,
                                 int tempflag,
-                                int disabled,
+                                int enabled,
                                 int from_tty)
 {
   std::string addr_string;
@@ -12791,7 +12791,7 @@ create_ada_exception_catchpoint (struct gdbarch *gdbarch,
 
   std::unique_ptr<ada_catchpoint> c
     (new ada_catchpoint (gdbarch, ex_kind, sal, addr_string.c_str (),
-                        tempflag, disabled, from_tty));
+                        tempflag, enabled, from_tty));
   c->excep_string = excep_string;
   create_excep_cond_exprs (c.get (), ex_kind);
   if (!cond_string.empty ())
index 339c151798e7ae438ba512a040d787ef2f90093c..f5bb54c7d36dd3318436dba69c4f0da7c7e1863a 100644 (file)
@@ -342,7 +342,7 @@ extern const char *ada_main_name ();
 extern void create_ada_exception_catchpoint
   (struct gdbarch *gdbarch, enum ada_exception_catchpoint_kind ex_kind,
    const std::string &excep_string, const std::string &cond_string, int tempflag,
-   int disabled, int from_tty);
+   int enabled, int from_tty);
 
 /* Return true if BP is an Ada catchpoint.  */