GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/fork-child.c File Reference
#include "defs.h"
#include "gdb_string.h"
#include "inferior.h"
#include "terminal.h"
#include "target.h"
#include "gdb_wait.h"
#include "gdb_vfork.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "command.h"
#include "gdbcmd.h"
#include "solib.h"
#include "filestuff.h"
#include <signal.h>

Go to the source code of this file.

Defines

#define SHELL_FILE   "/bin/sh"

Functions

static void breakup_args (char *scratch, char **argv)
static int escape_bang_in_quoted_argument (const char *shell_file)
int fork_inferior (char *exec_file_arg, char *allargs, char **env, void(*traceme_fun)(void), void(*init_trace_fun)(int), void(*pre_trace_fun)(void), char *shell_file_arg, void(*exec_fun)(const char *file, char *const *argv, char *const *env))
void startup_inferior (int ntraps)
static void unset_exec_wrapper_command (char *args, int from_tty)
void _initialize_fork_child (void)

Variables

char ** environ
static char * exec_wrapper
initialize_file_ftype _initialize_fork_child

Define Documentation

#define SHELL_FILE   "/bin/sh"

Definition at line 40 of file fork-child.c.

Referenced by fork_inferior().


Function Documentation

void _initialize_fork_child ( void  )
static void breakup_args ( char *  scratch,
char **  argv 
) [static]

Definition at line 52 of file fork-child.c.

References strchr().

Referenced by fork_inferior().

static int escape_bang_in_quoted_argument ( const char *  shell_file) [static]

Definition at line 94 of file fork-child.c.

Referenced by fork_inferior().

int fork_inferior ( char *  exec_file_arg,
char *  allargs,
char **  env,
void(*)(void)  traceme_fun,
void(*)(int init_trace_fun,
void(*)(void)  pre_trace_fun,
char *  shell_file_arg,
void(*)(const char *file, char *const *argv, char *const *env)  exec_fun 
)
void startup_inferior ( int  ntraps)
static void unset_exec_wrapper_command ( char *  args,
int  from_tty 
) [static]

Definition at line 530 of file fork-child.c.

References exec_wrapper, and xfree().

Referenced by _initialize_fork_child().


Variable Documentation

Referenced by initialize_all_files().

char** environ
char* exec_wrapper [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines