GDBserver
Loading...
Searching...
No Matches
Classes | Functions | Variables
fork-inferior.c File Reference
#include "gdbsupport/common-defs.h"
#include "fork-inferior.h"
#include "target/waitstatus.h"
#include "gdbsupport/filestuff.h"
#include "target/target.h"
#include "gdbsupport/common-inferior.h"
#include "gdbsupport/common-gdbthread.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/signals-state-save-restore.h"
#include "gdbsupport/gdb_tilde_expand.h"
#include <vector>

Go to the source code of this file.

Classes

class  execv_argv
 

Functions

static bool escape_bang_in_quoted_argument (const char *shell_file)
 
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))
 
ptid_t startup_inferior (process_stratum_target *proc_target, pid_t pid, int ntraps, struct target_waitstatus *last_waitstatus, ptid_t *last_ptid)
 
void trace_start_error (const char *fmt,...)
 
void trace_start_error_with_name (const char *string)
 

Variables

char ** environ
 

Function Documentation

◆ escape_bang_in_quoted_argument()

static bool escape_bang_in_quoted_argument ( const char * shell_file)
static

Definition at line 142 of file fork-inferior.c.

Referenced by execv_argv::init_for_shell().

◆ fork_inferior()

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(*)(const char *file, char *const *argv, char *const *env) exec_fun )

◆ startup_inferior()

ptid_t startup_inferior ( process_stratum_target * proc_target,
pid_t pid,
int ntraps,
struct target_waitstatus * last_waitstatus,
ptid_t * last_ptid )

Definition at line 451 of file fork-inferior.c.

◆ trace_start_error()

void trace_start_error ( const char * fmt,
... )

Definition at line 574 of file fork-inferior.c.

References gdb_flush_out_err().

Referenced by trace_start_error_with_name().

◆ trace_start_error_with_name()

void trace_start_error_with_name ( const char * string)

Definition at line 590 of file fork-inferior.c.

References trace_start_error().

Referenced by fork_inferior().

Variable Documentation

◆ environ

char** environ
extern

Referenced by fork_inferior().