aboutsummaryrefslogtreecommitdiff
path: root/gdb/fork-child.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/fork-child.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r--gdb/fork-child.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index d210427..6a6398d 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -109,7 +109,7 @@ postfork_child_hook ()
in a separate process group. */
debug_setpgrp = gdb_setpgid ();
if (debug_setpgrp == -1)
- perror (_("setpgrp failed in child"));
+ perror (_ ("setpgrp failed in child"));
}
/* Ask the tty subsystem to switch to the one we specified
@@ -149,32 +149,29 @@ static void
show_startup_with_shell (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- gdb_printf (file,
- _("Use of shell to start subprocesses is %s.\n"),
- value);
+ gdb_printf (file, _ ("Use of shell to start subprocesses is %s.\n"), value);
}
void _initialize_fork_child ();
+
void
_initialize_fork_child ()
{
- add_setshow_filename_cmd ("exec-wrapper", class_run, &exec_wrapper, _("\
+ add_setshow_filename_cmd ("exec-wrapper", class_run, &exec_wrapper, _ ("\
Set a wrapper for running programs.\n\
The wrapper prepares the system and environment for the new program."),
- _("\
-Show the wrapper for running programs."), NULL,
- NULL, NULL,
- &setlist, &showlist);
+ _ ("\
+Show the wrapper for running programs."),
+ NULL, NULL, NULL, &setlist, &showlist);
add_cmd ("exec-wrapper", class_run, unset_exec_wrapper_command,
- _("Disable use of an execution wrapper."),
- &unsetlist);
+ _ ("Disable use of an execution wrapper."), &unsetlist);
add_setshow_boolean_cmd ("startup-with-shell", class_support,
- &startup_with_shell, _("\
-Set use of shell to start subprocesses. The default is on."), _("\
-Show use of shell to start subprocesses."), NULL,
- NULL,
- show_startup_with_shell,
- &setlist, &showlist);
+ &startup_with_shell, _ ("\
+Set use of shell to start subprocesses. The default is on."),
+ _ ("\
+Show use of shell to start subprocesses."),
+ NULL, NULL, show_startup_with_shell, &setlist,
+ &showlist);
}