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/nat/fork-inferior.h | |
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/nat/fork-inferior.h')
-rw-r--r-- | gdb/nat/fork-inferior.h | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/gdb/nat/fork-inferior.h b/gdb/nat/fork-inferior.h index 67c7650..c83dff9 100644 --- a/gdb/nat/fork-inferior.h +++ b/gdb/nat/fork-inferior.h @@ -40,22 +40,17 @@ struct process_stratum_target; /* This function is NOT reentrant. Some of the variables have been made static to ensure that they survive the vfork call. */ -extern pid_t fork_inferior (const char *exec_file_arg, - const std::string &allargs, - char **env, void (*traceme_fun) (), - gdb::function_view<void (int)> init_trace_fun, - void (*pre_trace_fun) (), - const char *shell_file_arg, - void (*exec_fun) (const char *file, - char * const *argv, - char * const *env)); +extern pid_t fork_inferior ( + const char *exec_file_arg, const std::string &allargs, char **env, + void (*traceme_fun) (), gdb::function_view<void (int)> init_trace_fun, + void (*pre_trace_fun) (), const char *shell_file_arg, + void (*exec_fun) (const char *file, char *const *argv, char *const *env)); /* Accept NTRAPS traps from the inferior. Return the ptid of the inferior being started. */ -extern ptid_t startup_inferior (process_stratum_target *proc_target, - pid_t pid, int ntraps, - struct target_waitstatus *mystatus, +extern ptid_t startup_inferior (process_stratum_target *proc_target, pid_t pid, + int ntraps, struct target_waitstatus *mystatus, ptid_t *myptid); /* Perform any necessary tasks before a fork/vfork takes place. ARGS @@ -78,13 +73,13 @@ extern void gdb_flush_out_err (); /* Report an error that happened when starting to trace the inferior (i.e., when the "traceme_fun" callback is called on fork_inferior) and bail out. This function does not return. */ -extern void trace_start_error (const char *fmt, ...) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); +extern void trace_start_error (const char *fmt, ...) ATTRIBUTE_NORETURN + ATTRIBUTE_PRINTF (1, 2); /* Like "trace_start_error", but the error message is constructed by combining STRING with the system error message for errno. This function does not return. */ -extern void trace_start_error_with_name (const char *string) - ATTRIBUTE_NORETURN; +extern void +trace_start_error_with_name (const char *string) ATTRIBUTE_NORETURN; #endif /* NAT_FORK_INFERIOR_H */ |