diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/break-catch-exec.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/break-catch-exec.c')
-rw-r--r-- | gdb/break-catch-exec.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gdb/break-catch-exec.c b/gdb/break-catch-exec.c index 6cd4985..b701d58 100644 --- a/gdb/break-catch-exec.c +++ b/gdb/break-catch-exec.c @@ -45,8 +45,7 @@ struct exec_catchpoint : public catchpoint int remove_location (struct bp_location *, enum remove_bp_reason reason) override; int breakpoint_hit (const struct bp_location *bl, - const address_space *aspace, - CORE_ADDR bp_addr, + const address_space *aspace, CORE_ADDR bp_addr, const target_waitstatus &ws) override; enum print_stop_action print_it (const bpstat *bs) const override; bool print_one (bp_location **) const override; @@ -140,7 +139,7 @@ exec_catchpoint::print_one (bp_location **last_loc) const void exec_catchpoint::print_mention () const { - gdb_printf (_("Catchpoint %d (exec)"), number); + gdb_printf (_ ("Catchpoint %d (exec)"), number); } /* Implement the "print_recreate" method for exec catchpoints. */ @@ -206,21 +205,19 @@ catch_exec_command_1 (const char *arg, int from_tty, cond_string = ep_parse_optional_if_clause (&arg); if ((*arg != '\0') && !isspace (*arg)) - error (_("Junk at end of arguments.")); + error (_ ("Junk at end of arguments.")); - std::unique_ptr<exec_catchpoint> c - (new exec_catchpoint (gdbarch, temp, cond_string)); + std::unique_ptr<exec_catchpoint> c (new exec_catchpoint (gdbarch, temp, + cond_string)); install_breakpoint (0, std::move (c), 1); } void _initialize_break_catch_exec (); + void _initialize_break_catch_exec () { - add_catch_command ("exec", _("Catch calls to exec."), - catch_exec_command_1, - NULL, - CATCH_PERMANENT, - CATCH_TEMPORARY); + add_catch_command ("exec", _ ("Catch calls to exec."), catch_exec_command_1, + NULL, CATCH_PERMANENT, CATCH_TEMPORARY); } |