GDB (API)
Defines | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/infrun.c File Reference
#include "defs.h"
#include "gdb_string.h"
#include <ctype.h>
#include "symtab.h"
#include "frame.h"
#include "inferior.h"
#include "exceptions.h"
#include "breakpoint.h"
#include "gdb_wait.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "cli/cli-script.h"
#include "target.h"
#include "gdbthread.h"
#include "annotate.h"
#include "symfile.h"
#include "top.h"
#include <signal.h>
#include "inf-loop.h"
#include "regcache.h"
#include "value.h"
#include "observer.h"
#include "language.h"
#include "solib.h"
#include "main.h"
#include "dictionary.h"
#include "block.h"
#include "gdb_assert.h"
#include "mi/mi-common.h"
#include "event-top.h"
#include "record.h"
#include "record-full.h"
#include "inline-frame.h"
#include "jit.h"
#include "tracepoint.h"
#include "continuations.h"
#include "interps.h"
#include "skip.h"
#include "probe.h"
#include "objfiles.h"
#include "completer.h"
#include "target-descriptions.h"

Go to the source code of this file.

Defines

#define SET_SIGS(nsigs, sigs, flags)
#define UNSET_SIGS(nsigs, sigs, flags)
#define RESUME_ALL   minus_one_ptid

Enumerations

enum  infwait_states { infwait_normal_state, infwait_thread_hop_state, infwait_step_watch_state, infwait_nonstep_watch_state }

Functions

void _initialize_infrun (void)
void nullify_last_target_wait_ptid (void)
void update_observer_mode (void)
void update_signals_program_target (void)
void init_thread_stepping_state (struct thread_info *tss)
void follow_inferior_reset_breakpoints (void)
struct displaced_step_closure * get_displaced_step_closure_by_addr (CORE_ADDR addr)
void displaced_step_dump_bytes (struct ui_file *file, const gdb_byte *buf, size_t len)
ptid_t user_visible_resume_ptid (int step)
void resume (int step, enum gdb_signal sig)
void clear_proceed_status (void)
void proceed (CORE_ADDR addr, enum gdb_signal siggnal, int step)
void start_remote (int from_tty)
void init_wait_for_inferior (void)
void prepare_for_detach (void)
void wait_for_inferior (void)
void fetch_inferior_event (void *client_data)
void set_step_info (struct frame_info *frame, struct symtab_and_line sal)
void get_last_target_status (ptid_t *ptidp, struct target_waitstatus *status)
void insert_step_resume_breakpoint_at_sal (struct gdbarch *gdbarch, struct symtab_and_line sr_sal, struct frame_id sr_id)
void normal_stop (void)
int signal_stop_state (int signo)
int signal_print_state (int signo)
int signal_pass_state (int signo)
int signal_stop_update (int signo, int state)
int signal_print_update (int signo, int state)
int signal_pass_update (int signo, int state)
void signal_catch_update (const unsigned int *info)
enum gdb_signal gdb_signal_from_command (int num)
struct infcall_suspend_state * save_infcall_suspend_state (void)
void restore_infcall_suspend_state (struct infcall_suspend_state *inf_state)
struct cleanup * make_cleanup_restore_infcall_suspend_state (struct infcall_suspend_state *inf_state)
void discard_infcall_suspend_state (struct infcall_suspend_state *inf_state)
struct regcache * get_infcall_suspend_state_regcache (struct infcall_suspend_state *inf_state)
struct infcall_control_state * save_infcall_control_state (void)
void restore_infcall_control_state (struct infcall_control_state *inf_status)
struct cleanup * make_cleanup_restore_infcall_control_state (struct infcall_control_state *inf_status)
void discard_infcall_control_state (struct infcall_control_state *inf_status)
int ptid_match (ptid_t ptid, ptid_t filter)
struct cleanup * save_inferior_ptid (void)
void clear_exit_convenience_vars (void)

Variables

int step_stop_if_no_debug = 0
int sync_execution = 0
int debug_displaced = 0
unsigned int debug_infrun = 0
int disable_randomization = 1
int non_stop = 0
int observer_mode = 0
int stop_on_solib_events
int stop_after_trap
struct regcache * stop_registers
int sched_multi = 0
ptid_t waiton_ptid
int execution_direction = EXEC_FORWARD

Define Documentation

#define RESUME_ALL   minus_one_ptid

Definition at line 335 of file infrun.c.

#define SET_SIGS (   nsigs,
  sigs,
  flags 
)
Value:
do { \
    int signum = (nsigs); \
    while (signum-- > 0) \
      if ((sigs)[signum]) \
        (flags)[signum] = 1; \
  } while (0)

Definition at line 308 of file infrun.c.

#define UNSET_SIGS (   nsigs,
  sigs,
  flags 
)
Value:
do { \
    int signum = (nsigs); \
    while (signum-- > 0) \
      if ((sigs)[signum]) \
        (flags)[signum] = 0; \
  } while (0)

Definition at line 316 of file infrun.c.


Enumeration Type Documentation

Enumerator:
infwait_normal_state 
infwait_thread_hop_state 
infwait_step_watch_state 
infwait_nonstep_watch_state 

Definition at line 2396 of file infrun.c.


Function Documentation

void _initialize_infrun ( void  )
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 discard_infcall_control_state ( struct infcall_control_state *  inf_status)

Definition at line 7038 of file infrun.c.

void discard_infcall_suspend_state ( struct infcall_suspend_state *  inf_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 fetch_inferior_event ( void *  client_data)

Definition at line 2770 of file infrun.c.

Definition at line 576 of file infrun.c.

Definition at line 6615 of file infrun.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 *  inf_state) [read]

Definition at line 6905 of file infrun.c.

void get_last_target_status ( ptid_t ptidp,
struct target_waitstatus status 
)

Definition at line 2899 of file infrun.c.

void init_thread_stepping_state ( struct thread_info tss)

Definition at line 2887 of file infrun.c.

void init_wait_for_inferior ( void  )

Definition at line 2371 of file infrun.c.

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

Definition at line 5467 of file infrun.c.

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

Definition at line 7032 of file infrun.c.

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

Definition at line 6891 of file infrun.c.

void normal_stop ( void  )

Definition at line 5969 of file infrun.c.

Definition at line 2906 of file infrun.c.

void prepare_for_detach ( void  )

Definition at line 2640 of file infrun.c.

void proceed ( CORE_ADDR  addr,
enum gdb_signal  siggnal,
int  step 
)

Definition at line 2140 of file infrun.c.

int ptid_match ( ptid_t  ptid,
ptid_t  filter 
)

Definition at line 7055 of file infrun.c.

void restore_infcall_control_state ( struct infcall_control_state *  inf_status)

Definition at line 6984 of file infrun.c.

void restore_infcall_suspend_state ( struct infcall_suspend_state *  inf_state)

Definition at line 6849 of file infrun.c.

void resume ( int  step,
enum gdb_signal  sig 
)

Definition at line 1719 of file infrun.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_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 info)

Definition at line 6301 of file infrun.c.

Definition at line 6245 of file infrun.c.

int signal_pass_update ( int  signo,
int  state 
)

Definition at line 6288 of file infrun.c.

Definition at line 6239 of file infrun.c.

int signal_print_update ( int  signo,
int  state 
)

Definition at line 6278 of file infrun.c.

Definition at line 6233 of file infrun.c.

int signal_stop_update ( int  signo,
int  state 
)

Definition at line 6268 of file infrun.c.

void start_remote ( int  from_tty)

Definition at line 2337 of file infrun.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.

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 = 0

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 190 of file infrun.c.

Definition at line 219 of file infrun.c.

Definition at line 1644 of file infrun.c.

Definition at line 117 of file infrun.c.

Definition at line 369 of file infrun.c.

Definition at line 347 of file infrun.c.

struct regcache* stop_registers

Definition at line 376 of file infrun.c.

Definition at line 127 of file infrun.c.

Definition at line 2405 of file infrun.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines