diff options
author | Tom Tromey <tromey@adacore.com> | 2023-02-16 10:27:26 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-02-16 10:29:11 -0700 |
commit | 12d67b37cde0d6f8492bc2052b3fe8da4691f9d0 (patch) | |
tree | cc110897d5b7306e92549602457a52e61fb271dc /gdb | |
parent | 16b84b6599dba01abc00954d0bc80ddf0c2373e3 (diff) | |
download | gdb-12d67b37cde0d6f8492bc2052b3fe8da4691f9d0.zip gdb-12d67b37cde0d6f8492bc2052b3fe8da4691f9d0.tar.gz gdb-12d67b37cde0d6f8492bc2052b3fe8da4691f9d0.tar.bz2 |
Rename parameter of create_ada_exception_catchpoint
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ada-lang.c | 4 | ||||
-rw-r--r-- | gdb/ada-lang.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index b5afba3..eb81d73 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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 ()) diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h index 339c151..f5bb54c 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h @@ -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. */ |