GDB (xrefs)
Public Member Functions | Public Attributes | List of all members
inferior Class Reference

#include "inferior.h"

Inheritance diagram for inferior:
refcounted_object

Public Member Functions

 inferior (int pid)
 
 ~inferior ()
 
bool deletable () const
 
- Public Member Functions inherited from refcounted_object
 refcounted_object ()=default
 
void incref ()
 
void decref ()
 
int refcount () const
 

Public Attributes

struct inferiornext = NULL
 
int num = 0
 
int pid = 0
 
bool fake_pid_p = false
 
int highest_thread_num = 0
 
inferior_control_state control {NO_STOP_QUIETLY}
 
bool removable = false
 
struct address_spaceaspace = NULL
 
struct program_spacepspace = NULL
 
char * args = NULL
 
int argc = 0
 
char ** argv = NULL
 
gdb::unique_xmalloc_ptr< char > cwd
 
char * terminal = NULL
 
gdb_environ environment
 
bool attach_flag = false
 
inferiorvfork_parent = NULL
 
inferiorvfork_child = NULL
 
bool pending_detach = false
 
bool waiting_for_vfork_done = false
 
bool detaching = false
 
continuationcontinuations = NULL
 
bool needs_setup = false
 
std::unique_ptr< private_inferiorpriv
 
bool has_exit_code = false
 
LONGEST exit_code = 0
 
symfile_add_flags symfile_flags = 0
 
target_desc_infotdesc_info = NULL
 
struct gdbarchgdbarch = NULL
 
 REGISTRY_FIELDS
 

Detailed Description

Definition at line 310 of file inferior.h.

Constructor & Destructor Documentation

◆ inferior()

inferior::inferior ( int  pid)
explicit

◆ ~inferior()

inferior::~inferior ( )

Definition at line 76 of file inferior.c.

References discard_all_inferior_continuations(), target_desc_info_free(), and xfree().

Member Function Documentation

◆ deletable()

bool inferior::deletable ( ) const
inline

Definition at line 317 of file inferior.h.

References refcounted_object::refcount().

Referenced by prune_inferiors().

Member Data Documentation

◆ argc

int inferior::argc = 0

◆ args

char* inferior::args = NULL

◆ argv

char** inferior::argv = NULL

Definition at line 361 of file inferior.h.

Referenced by set_inferior_args(), and set_inferior_args_vector().

◆ aspace

struct address_space* inferior::aspace = NULL

◆ attach_flag

bool inferior::attach_flag = false

Definition at line 375 of file inferior.h.

Referenced by ctrl_c_handler(), follow_fork_inferior(), gnu_attach(), and target_pre_inferior().

◆ continuations

continuation* inferior::continuations = NULL

Definition at line 402 of file inferior.h.

◆ control

◆ cwd

gdb::unique_xmalloc_ptr<char> inferior::cwd

Definition at line 365 of file inferior.h.

Referenced by get_inferior_cwd(), set_inferior_cwd(), and show_cwd_command().

◆ detaching

bool inferior::detaching = false

Definition at line 397 of file inferior.h.

◆ environment

gdb_environ inferior::environment

◆ exit_code

LONGEST inferior::exit_code = 0

Definition at line 416 of file inferior.h.

Referenced by handle_inferior_event_1(), and print_one_inferior().

◆ fake_pid_p

bool inferior::fake_pid_p = false

◆ gdbarch

struct gdbarch* inferior::gdbarch = NULL

◆ has_exit_code

bool inferior::has_exit_code = false

Definition at line 415 of file inferior.h.

Referenced by handle_inferior_event_1(), and print_one_inferior().

◆ highest_thread_num

int inferior::highest_thread_num = 0

Definition at line 333 of file inferior.h.

Referenced by target_pre_inferior(), and thread_info::thread_info().

◆ needs_setup

bool inferior::needs_setup = false

Definition at line 408 of file inferior.h.

Referenced by attach_command(), attach_post_wait(), and setup_inferior().

◆ next

struct inferior* inferior::next = NULL

◆ num

int inferior::num = 0

◆ pending_detach

bool inferior::pending_detach = false

Definition at line 389 of file inferior.h.

Referenced by follow_fork_inferior().

◆ pid

int inferior::pid = 0

◆ priv

std::unique_ptr<private_inferior> inferior::priv

◆ pspace

struct program_space* inferior::pspace = NULL

◆ REGISTRY_FIELDS

inferior::REGISTRY_FIELDS

Definition at line 440 of file inferior.h.

◆ removable

bool inferior::removable = false

Definition at line 343 of file inferior.h.

Referenced by follow_fork_inferior(), and prune_inferiors().

◆ symfile_flags

symfile_add_flags inferior::symfile_flags = 0

Definition at line 420 of file inferior.h.

Referenced by follow_fork_inferior(), solib_read_symbols(), and symbol_file_add_main_1().

◆ tdesc_info

target_desc_info* inferior::tdesc_info = NULL

Definition at line 424 of file inferior.h.

◆ terminal

char* inferior::terminal = NULL

Definition at line 368 of file inferior.h.

Referenced by get_inferior_io_terminal(), and set_inferior_io_terminal().

◆ vfork_child

inferior* inferior::vfork_child = NULL

Definition at line 385 of file inferior.h.

Referenced by follow_fork_inferior().

◆ vfork_parent

inferior* inferior::vfork_parent = NULL

Definition at line 379 of file inferior.h.

Referenced by follow_fork_inferior().

◆ waiting_for_vfork_done

bool inferior::waiting_for_vfork_done = false

Definition at line 394 of file inferior.h.

Referenced by follow_fork_inferior(), and handle_inferior_event_1().


The documentation for this class was generated from the following files: