aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/break-catch-exec.c')
-rw-r--r--gdb/break-catch-exec.c19
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);
}