GDB (API)
Classes | Defines | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/inferior.h File Reference
#include "ptid.h"
#include "breakpoint.h"
#include "target.h"
#include "frame.h"
#include "progspace.h"
#include "registry.h"

Go to the source code of this file.

Classes

struct  inferior_control_state
struct  inferior

Defines

#define ON_STACK   1
#define AT_ENTRY_POINT   4
#define STARTUP_WITH_SHELL   1
#define ALL_INFERIORS(I)   for ((I) = inferior_list; (I); (I) = (I)->next)

Enumerations

enum  step_over_calls_kind { STEP_OVER_NONE, STEP_OVER_ALL, STEP_OVER_UNDEBUGGABLE }
enum  stop_kind { NO_STOP_QUIETLY = 0, STOP_QUIETLY, STOP_QUIETLY_REMOTE, STOP_QUIETLY_NO_SIGSTOP }
enum  exec_direction_kind { EXEC_FORWARD, EXEC_REVERSE }

Functions

struct infcall_suspend_state * save_infcall_suspend_state (void)
struct infcall_control_state * save_infcall_control_state (void)
void restore_infcall_suspend_state (struct infcall_suspend_state *)
void restore_infcall_control_state (struct infcall_control_state *)
struct cleanup * make_cleanup_restore_infcall_suspend_state (struct infcall_suspend_state *)
struct cleanup * make_cleanup_restore_infcall_control_state (struct infcall_control_state *)
void discard_infcall_suspend_state (struct infcall_suspend_state *)
void discard_infcall_control_state (struct infcall_control_state *)
struct regcache * get_infcall_suspend_state_regcache (struct infcall_suspend_state *)
int ptid_match (ptid_t ptid, ptid_t filter)
struct cleanup * save_inferior_ptid (void)
void set_sigint_trap (void)
void clear_sigint_trap (void)
void set_inferior_io_terminal (const char *terminal_name)
const char * get_inferior_io_terminal (void)
void clear_proceed_status (void)
void proceed (CORE_ADDR, enum gdb_signal, int)
void generic_mourn_inferior (void)
void terminal_save_ours (void)
void terminal_ours (void)
CORE_ADDR unsigned_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
void unsigned_address_to_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
CORE_ADDR signed_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
void address_to_signed_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
void wait_for_inferior (void)
void prepare_for_detach (void)
void fetch_inferior_event (void *)
void init_wait_for_inferior (void)
void reopen_exec_file (void)
void resume (int, enum gdb_signal)
ptid_t user_visible_resume_ptid (int step)
void insert_step_resume_breakpoint_at_sal (struct gdbarch *, struct symtab_and_line, struct frame_id)
void default_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, int regnum, int all)
void child_terminal_info (const char *, int)
void term_info (char *, int)
void terminal_ours_for_output (void)
void terminal_inferior (void)
void terminal_init_inferior (void)
void terminal_init_inferior_with_pgrp (int pgrp)
int fork_inferior (char *, char *, char **, void(*)(void), void(*)(int), void(*)(void), char *, void(*)(const char *, char *const *, char *const *))
void startup_inferior (int)
char * construct_inferior_arguments (int, char **)
void start_remote (int from_tty)
void normal_stop (void)
int signal_stop_state (int)
int signal_print_state (int)
int signal_pass_state (int)
int signal_stop_update (int, int)
int signal_print_update (int, int)
int signal_pass_update (int, int)
void get_last_target_status (ptid_t *ptid, struct target_waitstatus *status)
void follow_inferior_reset_breakpoints (void)
void set_step_info (struct frame_info *frame, struct symtab_and_line sal)
void clear_exit_convenience_vars (void)
void post_create_inferior (struct target_ops *, int)
void attach_command (char *, int)
char * get_inferior_args (void)
void set_inferior_args (char *)
void set_inferior_args_vector (int, char **)
void registers_info (char *, int)
void continue_1 (int all_threads)
void interrupt_target_1 (int all_threads)
void delete_longjmp_breakpoint_cleanup (void *arg)
void detach_command (char *, int)
void notice_new_inferior (ptid_t, int, int)
struct value * get_return_value (struct value *function, struct type *value_type)
void displaced_step_dump_bytes (struct ui_file *file, const gdb_byte *buf, size_t len)
struct displaced_step_closure * get_displaced_step_closure_by_addr (CORE_ADDR addr)
 DECLARE_REGISTRY (inferior)
void init_inferior_list (void)
struct inferioradd_inferior (int pid)
struct inferioradd_inferior_silent (int pid)
void delete_inferior (int pid)
void delete_inferior_1 (struct inferior *todel, int silent)
void delete_inferior_silent (int pid)
void detach_inferior (int pid)
void exit_inferior (int pid)
void exit_inferior_silent (int pid)
void exit_inferior_num_silent (int num)
void inferior_appeared (struct inferior *inf, int pid)
void discard_all_inferiors (void)
int gdb_inferior_id_to_pid (int)
int pid_to_gdb_inferior_id (int pid)
int in_inferior_list (int pid)
int valid_gdb_inferior_id (int num)
struct inferiorfind_inferior_pid (int pid)
struct inferiorfind_inferior_id (int num)
struct inferiorfind_inferior_for_program_space (struct program_space *pspace)
struct inferioriterate_over_inferiors (int(*)(struct inferior *, void *), void *)
int have_inferiors (void)
int have_live_inferiors (void)
struct inferiorcurrent_inferior (void)
void set_current_inferior (struct inferior *)
struct cleanup * save_current_inferior (void)
void prune_inferiors (void)
int number_of_inferiors (void)
struct inferioradd_inferior_with_spaces (void)
void update_observer_mode (void)
void update_signals_program_target (void)
void signal_catch_update (const unsigned int *)
enum gdb_signal gdb_signal_from_command (int num)

Variables

ptid_t inferior_ptid
int sync_execution
int sched_multi
int step_stop_if_no_debug
int non_stop
int disable_randomization
unsigned int debug_infrun
int stop_on_solib_events
CORE_ADDR stop_pc
enum stop_stack_kind stop_stack_dummy
int stopped_by_random_signal
int execution_direction
struct regcache * stop_registers
int debug_displaced
struct inferiorinferior_list

Define Documentation

#define ALL_INFERIORS (   I)    for ((I) = inferior_list; (I); (I) = (I)->next)

Definition at line 619 of file inferior.h.

#define AT_ENTRY_POINT   4

Definition at line 347 of file inferior.h.

#define ON_STACK   1

Definition at line 346 of file inferior.h.

#define STARTUP_WITH_SHELL   1

Definition at line 365 of file inferior.h.


Enumeration Type Documentation

Enumerator:
EXEC_FORWARD 
EXEC_REVERSE 

Definition at line 318 of file inferior.h.

Enumerator:
STEP_OVER_NONE 
STEP_OVER_ALL 
STEP_OVER_UNDEBUGGABLE 

Definition at line 277 of file inferior.h.

enum stop_kind
Enumerator:
NO_STOP_QUIETLY 
STOP_QUIETLY 
STOP_QUIETLY_REMOTE 
STOP_QUIETLY_NO_SIGSTOP 

Definition at line 309 of file inferior.h.


Function Documentation

struct inferior* add_inferior ( int  pid) [read]

Definition at line 156 of file inferior.c.

struct inferior* add_inferior_silent ( int  pid) [read]

Definition at line 128 of file inferior.c.

struct inferior* add_inferior_with_spaces ( void  ) [read]

Definition at line 795 of file inferior.c.

void address_to_signed_pointer ( struct gdbarch *  gdbarch,
struct type type,
gdb_byte buf,
CORE_ADDR  addr 
)

Definition at line 333 of file findvar.c.

void attach_command ( char *  ,
int   
)

Definition at line 2516 of file infcmd.c.

void child_terminal_info ( const char *  ,
int   
)

Definition at line 569 of file inflow.c.

void clear_exit_convenience_vars ( void  )

Definition at line 7098 of file infrun.c.

void clear_proceed_status ( void  )

Definition at line 2015 of file infrun.c.

void clear_sigint_trap ( void  )

Definition at line 795 of file inflow.c.

char* construct_inferior_arguments ( int  ,
char **   
)

Definition at line 254 of file infcmd.c.

void continue_1 ( int  all_threads)

Definition at line 702 of file infcmd.c.

struct inferior* current_inferior ( void  ) [read]

Definition at line 58 of file inferior.c.

void default_print_registers_info ( struct gdbarch *  gdbarch,
struct ui_file *  file,
struct frame_info *  frame,
int  regnum,
int  all 
)

Definition at line 2105 of file infcmd.c.

void delete_inferior ( int  pid)

Definition at line 222 of file inferior.c.

void delete_inferior_1 ( struct inferior todel,
int  silent 
)

Definition at line 192 of file inferior.c.

void delete_inferior_silent ( int  pid)

Definition at line 233 of file inferior.c.

void delete_longjmp_breakpoint_cleanup ( void *  arg)

Definition at line 863 of file infcmd.c.

void detach_command ( char *  ,
int   
)

Definition at line 2700 of file infcmd.c.

void detach_inferior ( int  pid)

Definition at line 312 of file inferior.c.

void discard_all_inferiors ( void  )

Definition at line 331 of file inferior.c.

void discard_infcall_control_state ( struct infcall_control_state *  )

Definition at line 7038 of file infrun.c.

void discard_infcall_suspend_state ( struct infcall_suspend_state *  )

Definition at line 6897 of file infrun.c.

void displaced_step_dump_bytes ( struct ui_file *  file,
const gdb_byte buf,
size_t  len 
)

Definition at line 1270 of file infrun.c.

void exit_inferior ( int  pid)

Definition at line 285 of file inferior.c.

Definition at line 304 of file inferior.c.

void exit_inferior_silent ( int  pid)

Definition at line 296 of file inferior.c.

void fetch_inferior_event ( void *  )

Definition at line 2770 of file infrun.c.

struct inferior* find_inferior_for_program_space ( struct program_space pspace) [read]

Definition at line 374 of file inferior.c.

struct inferior* find_inferior_id ( int  num) [read]

Definition at line 343 of file inferior.c.

struct inferior* find_inferior_pid ( int  pid) [read]

Definition at line 355 of file inferior.c.

Definition at line 576 of file infrun.c.

int fork_inferior ( char *  ,
char *  ,
char **  ,
void(*)(void)  ,
void(*)(int ,
void(*)(void)  ,
char *  ,
void(*)(const char *, char *const *, char *const *)   
)

Definition at line 428 of file inferior.c.

Definition at line 6615 of file infrun.c.

void generic_mourn_inferior ( void  )

Definition at line 3652 of file target.c.

struct displaced_step_closure* get_displaced_step_closure_by_addr ( CORE_ADDR  addr) [read]

Definition at line 1163 of file infrun.c.

struct regcache* get_infcall_suspend_state_regcache ( struct infcall_suspend_state *  ) [read]

Definition at line 6905 of file infrun.c.

char* get_inferior_args ( void  )

Definition at line 194 of file infcmd.c.

const char* get_inferior_io_terminal ( void  )

Definition at line 164 of file infcmd.c.

void get_last_target_status ( ptid_t ptid,
struct target_waitstatus status 
)

Definition at line 2899 of file infrun.c.

struct value* get_return_value ( struct value *  function,
struct type value_type 
) [read]

Definition at line 1440 of file infcmd.c.

int have_inferiors ( void  )

Definition at line 450 of file inferior.c.

Definition at line 462 of file inferior.c.

Definition at line 438 of file inferior.c.

void inferior_appeared ( struct inferior inf,
int  pid 
)

Definition at line 323 of file inferior.c.

void init_inferior_list ( void  )

Definition at line 110 of file inferior.c.

void init_wait_for_inferior ( void  )

Definition at line 2371 of file infrun.c.

void insert_step_resume_breakpoint_at_sal ( struct gdbarch *  ,
struct symtab_and_line  ,
struct frame_id   
)

Definition at line 5467 of file infrun.c.

void interrupt_target_1 ( int  all_threads)

Definition at line 2749 of file infcmd.c.

struct inferior* iterate_over_inferiors ( int(*)(struct inferior *, void *)  ,
void *   
) [read]

Definition at line 388 of file inferior.c.

struct cleanup* make_cleanup_restore_infcall_control_state ( struct infcall_control_state *  ) [read]

Definition at line 7032 of file infrun.c.

struct cleanup* make_cleanup_restore_infcall_suspend_state ( struct infcall_suspend_state *  ) [read]

Definition at line 6891 of file infrun.c.

void normal_stop ( void  )

Definition at line 5969 of file infrun.c.

void notice_new_inferior ( ptid_t  ,
int  ,
int   
)

Definition at line 2631 of file infcmd.c.

Definition at line 512 of file inferior.c.

Definition at line 416 of file inferior.c.

void post_create_inferior ( struct target_ops ,
int   
)

Definition at line 404 of file infcmd.c.

void prepare_for_detach ( void  )

Definition at line 2640 of file infrun.c.

void proceed ( CORE_ADDR  ,
enum  gdb_signal,
int   
)

Definition at line 2140 of file infrun.c.

void prune_inferiors ( void  )

Definition at line 483 of file inferior.c.

int ptid_match ( ptid_t  ptid,
ptid_t  filter 
)

Definition at line 7055 of file infrun.c.

void registers_info ( char *  ,
int   
)

Definition at line 2150 of file infcmd.c.

void reopen_exec_file ( void  )

Definition at line 136 of file corefile.c.

void restore_infcall_control_state ( struct infcall_control_state *  )

Definition at line 6984 of file infrun.c.

void restore_infcall_suspend_state ( struct infcall_suspend_state *  )

Definition at line 6849 of file infrun.c.

void resume ( int  ,
enum  gdb_signal 
)

Definition at line 1719 of file infrun.c.

struct cleanup* save_current_inferior ( void  ) [read]

Definition at line 88 of file inferior.c.

struct infcall_control_state* save_infcall_control_state ( void  ) [read]

Definition at line 6932 of file infrun.c.

struct infcall_suspend_state* save_infcall_suspend_state ( void  ) [read]

Definition at line 6791 of file infrun.c.

struct cleanup* save_inferior_ptid ( void  ) [read]

Definition at line 7086 of file infrun.c.

void set_current_inferior ( struct inferior )

Definition at line 64 of file inferior.c.

void set_inferior_args ( char *  )

Definition at line 216 of file infcmd.c.

void set_inferior_args_vector ( int  ,
char **   
)

Definition at line 225 of file infcmd.c.

void set_inferior_io_terminal ( const char *  terminal_name)

Definition at line 157 of file infcmd.c.

void set_sigint_trap ( void  )

Definition at line 780 of file inflow.c.

void set_step_info ( struct frame_info *  frame,
struct symtab_and_line  sal 
)

Definition at line 2873 of file infrun.c.

void signal_catch_update ( const unsigned int )

Definition at line 6301 of file infrun.c.

Definition at line 6245 of file infrun.c.

int signal_pass_update ( int  ,
int   
)

Definition at line 6288 of file infrun.c.

Definition at line 6239 of file infrun.c.

Definition at line 6278 of file infrun.c.

Definition at line 6233 of file infrun.c.

int signal_stop_update ( int  ,
int   
)

Definition at line 6268 of file infrun.c.

CORE_ADDR signed_pointer_to_address ( struct gdbarch *  gdbarch,
struct type type,
const gdb_byte buf 
)

Definition at line 313 of file findvar.c.

void start_remote ( int  from_tty)

Definition at line 2337 of file infrun.c.

void startup_inferior ( int  )

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

void term_info ( char *  ,
int   
)

Definition at line 563 of file inflow.c.

void terminal_inferior ( void  )

Definition at line 275 of file inflow.c.

void terminal_init_inferior ( void  )

Definition at line 258 of file inflow.c.

Definition at line 218 of file inflow.c.

void terminal_ours ( void  )

Definition at line 366 of file inflow.c.

void terminal_ours_for_output ( void  )

Definition at line 356 of file inflow.c.

void terminal_save_ours ( void  )

Definition at line 248 of file inflow.c.

void unsigned_address_to_pointer ( struct gdbarch *  gdbarch,
struct type type,
gdb_byte buf,
CORE_ADDR  addr 
)

Definition at line 324 of file findvar.c.

CORE_ADDR unsigned_pointer_to_address ( struct gdbarch *  gdbarch,
struct type type,
const gdb_byte buf 
)

Definition at line 304 of file findvar.c.

void update_observer_mode ( void  )

Definition at line 273 of file infrun.c.

Definition at line 328 of file infrun.c.

Definition at line 1681 of file infrun.c.

Definition at line 404 of file inferior.c.

void wait_for_inferior ( void  )

Definition at line 2713 of file infrun.c.


Variable Documentation

Definition at line 142 of file infrun.c.

unsigned int debug_infrun

Definition at line 150 of file infrun.c.

Definition at line 161 of file infrun.c.

Definition at line 7109 of file infrun.c.

Definition at line 47 of file inferior.c.

Definition at line 135 of file infcmd.c.

Definition at line 190 of file infrun.c.

Definition at line 1644 of file infrun.c.

Definition at line 117 of file infrun.c.

Definition at line 347 of file infrun.c.

Definition at line 139 of file infcmd.c.

struct regcache* stop_registers

Definition at line 376 of file infrun.c.

Definition at line 143 of file infcmd.c.

Definition at line 148 of file infcmd.c.

Definition at line 127 of file infrun.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines