X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fnat%2Ffork-inferior.h;h=cf6f137edd1b738493012c792688757fac191333;hb=1ee1a363454d88a87ad2ade7530b2a7fb670021e;hp=1d0519fb26c36d7f6676d3b47b029c9eae76d859;hpb=1a5c25988eabb35e0e40ea484b1eea029d9b7f53;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/nat/fork-inferior.h b/gdb/nat/fork-inferior.h index 1d0519fb26..cf6f137edd 100644 --- a/gdb/nat/fork-inferior.h +++ b/gdb/nat/fork-inferior.h @@ -1,6 +1,6 @@ /* Functions and data responsible for forking the inferior process. - Copyright (C) 1986-2019 Free Software Foundation, Inc. + Copyright (C) 1986-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -21,6 +21,9 @@ #define NAT_FORK_INFERIOR_H #include +#include "gdbsupport/function-view.h" + +struct process_stratum_target; /* Number of traps that happen between exec'ing the shell to run an inferior and when we finally get to the inferior code, not counting @@ -40,7 +43,7 @@ extern pid_t fork_inferior (const char *exec_file_arg, const std::string &allargs, char **env, void (*traceme_fun) (), - void (*init_trace_fun) (int), + gdb::function_view init_trace_fun, void (*pre_trace_fun) (), const char *shell_file_arg, void (*exec_fun) (const char *file, @@ -50,30 +53,11 @@ extern pid_t fork_inferior (const char *exec_file_arg, /* Accept NTRAPS traps from the inferior. Return the ptid of the inferior being started. */ -extern ptid_t startup_inferior (pid_t pid, int ntraps, +extern ptid_t startup_inferior (process_stratum_target *proc_target, + pid_t pid, int ntraps, struct target_waitstatus *mystatus, ptid_t *myptid); -/* Whether to start up the debuggee under a shell. - - If startup-with-shell is set, GDB's "run" will attempt to start up - the debuggee under a shell. This also happens when using GDBserver - under extended remote mode. - - This is in order for argument-expansion to occur. E.g., - - (gdb) run * - - The "*" gets expanded by the shell into a list of files. - - While this is a nice feature, it may be handy to bypass the shell - in some cases. To disable this feature, do "set startup-with-shell - false". - - The catch-exec traps expected during start-up will be one more if - the target is started up with a shell. */ -extern int startup_with_shell; - /* Perform any necessary tasks before a fork/vfork takes place. ARGS is a string containing all the arguments received by the inferior. This function is mainly used by fork_inferior. */