GDB (xrefs)
Macros | Functions | Variables
fork-inferior.h File Reference
#include <string>

Go to the source code of this file.

Macros

#define START_INFERIOR_TRAPS_EXPECTED   1
 

Functions

pid_t fork_inferior (const char *exec_file_arg, const std::string &allargs, char **env, void(*traceme_fun)(), void(*init_trace_fun)(int), 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 (pid_t pid, int ntraps, struct target_waitstatus *mystatus, ptid_t *myptid)
 
void prefork_hook (const char *args)
 
void postfork_hook (pid_t pid)
 
void postfork_child_hook ()
 
void gdb_flush_out_err ()
 
void trace_start_error (const char *fmt,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(1
 
void void trace_start_error_with_name (const char *string) ATTRIBUTE_NORETURN
 

Variables

int startup_with_shell
 

Macro Definition Documentation

◆ START_INFERIOR_TRAPS_EXPECTED

#define START_INFERIOR_TRAPS_EXPECTED   1

Function Documentation

◆ fork_inferior()

pid_t fork_inferior ( const char *  exec_file_arg,
const std::string allargs,
char **  env,
void(*)()  traceme_fun,
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 
)

◆ 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().

◆ postfork_child_hook()

void postfork_child_hook ( )

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

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

Referenced by fork_inferior().

◆ postfork_hook()

void postfork_hook ( pid_t  pid)

◆ prefork_hook()

void prefork_hook ( const char *  args)

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

References current_ui, gdb_assert, get_inferior_io_terminal(), new_tty_prefork(), and saved_ui.

Referenced by fork_inferior().

◆ startup_inferior()

ptid_t startup_inferior ( pid_t  pid,
int  ntraps,
struct target_waitstatus mystatus,
ptid_t myptid 
)

◆ trace_start_error()

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

◆ trace_start_error_with_name()

void void trace_start_error_with_name ( const char *  string)

Variable Documentation

◆ startup_with_shell

int startup_with_shell