GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
fork-child.c File Reference
#include "defs.h"
#include "inferior.h"
#include "gdbcmd.h"
#include "terminal.h"
#include "gdbthread.h"
#include "ui.h"
#include "gdbsupport/job-control.h"
#include "gdbsupport/filestuff.h"
#include "nat/fork-inferior.h"
#include "gdbsupport/common-inferior.h"

Go to the source code of this file.

Functions

const char * get_exec_wrapper ()
 
void gdb_flush_out_err ()
 
void prefork_hook (const char *args)
 
void postfork_hook (pid_t pid)
 
void postfork_child_hook ()
 
ptid_t gdb_startup_inferior (pid_t pid, int num_traps)
 
static void unset_exec_wrapper_command (const char *args, int from_tty)
 
static void show_startup_with_shell (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void _initialize_fork_child ()
 

Variables

static std::string exec_wrapper
 
static struct uisaved_ui = NULL
 

Function Documentation

◆ _initialize_fork_child()

void _initialize_fork_child ( )

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

Referenced by initialize_all_files().

◆ gdb_flush_out_err()

void gdb_flush_out_err ( )

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

References gdb_flush(), ui::m_gdb_stderr, ui::m_gdb_stdout, and main_ui.

Referenced by fork_inferior(), and trace_start_error().

◆ gdb_startup_inferior()

ptid_t gdb_startup_inferior ( pid_t pid,
int num_traps )

◆ get_exec_wrapper()

const char * get_exec_wrapper ( )

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

References exec_wrapper.

Referenced by execv_argv::init_for_shell(), and startup_inferior().

◆ postfork_child_hook()

void postfork_child_hook ( )

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

References create_tty_session(), current_ui, main_ui, and new_tty().

Referenced by fork_inferior().

◆ postfork_hook()

void postfork_hook ( pid_t pid)

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

References current_inferior(), current_ui, inferior_appeared(), new_tty_postfork(), pid, and saved_ui.

Referenced by fork_inferior().

◆ prefork_hook()

void prefork_hook ( const char * args)

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

References current_inferior(), current_ui, new_tty_prefork(), and saved_ui.

Referenced by fork_inferior().

◆ show_startup_with_shell()

static void show_startup_with_shell ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

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

References gdb_printf().

◆ unset_exec_wrapper_command()

static void unset_exec_wrapper_command ( const char * args,
int from_tty )
static

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

References exec_wrapper.

Variable Documentation

◆ exec_wrapper

std::string exec_wrapper
static

◆ saved_ui

struct ui* saved_ui = NULL
static

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

Referenced by postfork_hook(), and prefork_hook().