GDB (xrefs)
|
#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 ui * | saved_ui = NULL |
void _initialize_fork_child | ( | ) |
Definition at line 159 of file fork-child.c.
Referenced by initialize_all_files().
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().
ptid_t gdb_startup_inferior | ( | pid_t | pid, |
int | num_traps ) |
Definition at line 124 of file fork-child.c.
References current_inferior(), pid, set_executing(), and startup_inferior().
Referenced by gnu_nat_target::create_inferior(), inf_ptrace_target::create_inferior(), procfs_target::procfs_init_inferior(), and darwin_nat_target::ptrace_him().
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().
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().
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().
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().
|
static |
Definition at line 149 of file fork-child.c.
References gdb_printf().
|
static |
Definition at line 143 of file fork-child.c.
References exec_wrapper.
|
static |
Definition at line 36 of file fork-child.c.
Referenced by get_exec_wrapper(), execv_argv::init_for_shell(), and unset_exec_wrapper_command().
|
static |
Definition at line 57 of file fork-child.c.
Referenced by postfork_hook(), and prefork_hook().