GDB (xrefs)
Classes | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/infrun.h File Reference
#include "symtab.h"
#include "common/byte-vector.h"

Go to the source code of this file.

Classes

struct  displaced_step_closure
 
struct  buf_displaced_step_closure
 

Enumerations

enum  exec_direction_kind { EXEC_FORWARD, EXEC_REVERSE }
 

Functions

ULONGEST get_stop_id (void)
 
void start_remote (int from_tty)
 
void clear_proceed_status (int step)
 
void proceed (CORE_ADDR, enum gdb_signal)
 
void resume (enum gdb_signal)
 
ptid_t user_visible_resume_ptid (int step)
 
void wait_for_inferior (void)
 
int normal_stop (void)
 
void get_last_target_status (ptid_t *ptid, struct target_waitstatus *status)
 
void set_last_target_status (ptid_t ptid, struct target_waitstatus status)
 
void stop_all_threads (void)
 
void prepare_for_detach (void)
 
void fetch_inferior_event (void *)
 
void init_wait_for_inferior (void)
 
void insert_step_resume_breakpoint_at_sal (struct gdbarch *, struct symtab_and_line, struct frame_id)
 
int stepping_past_instruction_at (struct address_space *aspace, CORE_ADDR address)
 
int thread_is_stepping_over_breakpoint (int thread)
 
int stepping_past_nonsteppable_watchpoint (void)
 
void set_step_info (struct frame_info *frame, struct symtab_and_line sal)
 
void print_signal_received_reason (struct ui_out *uiout, enum gdb_signal siggnal)
 
void print_end_stepping_range_reason (struct ui_out *uiout)
 
void print_signal_exited_reason (struct ui_out *uiout, enum gdb_signal siggnal)
 
void print_exited_reason (struct ui_out *uiout, int exitstatus)
 
void print_no_history_reason (struct ui_out *uiout)
 
void print_return_value (struct ui_out *uiout, struct return_value_info *rv)
 
void print_stop_event (struct ui_out *uiout)
 
void print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid, const struct target_waitstatus *ws)
 
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 update_signals_program_target (void)
 
void clear_exit_convenience_vars (void)
 
void displaced_step_dump_bytes (struct ui_file *file, const gdb_byte *buf, size_t len)
 
struct displaced_step_closureget_displaced_step_closure_by_addr (CORE_ADDR addr)
 
void update_observer_mode (void)
 
void signal_catch_update (const unsigned int *)
 
enum gdb_signal gdb_signal_from_command (int num)
 
void infrun_async (int enable)
 
void mark_infrun_async_event_handler (void)
 
void maybe_remove_breakpoints (void)
 
void all_uis_check_sync_execution_done (void)
 
void all_uis_on_sync_execution_starting (void)
 

Variables

unsigned int debug_infrun
 
int debug_displaced
 
int stop_on_solib_events
 
int sched_multi
 
int step_stop_if_no_debug
 
int non_stop
 
int disable_randomization
 
enum exec_direction_kind execution_direction
 
struct thread_infostep_over_queue_head
 

Enumeration Type Documentation

◆ exec_direction_kind

Enumerator
EXEC_FORWARD 
EXEC_REVERSE 

Definition at line 67 of file infrun.h.

Function Documentation

◆ all_uis_check_sync_execution_done()

void all_uis_check_sync_execution_done ( void  )

Definition at line 3831 of file infrun.c.

References check_curr_ui_sync_execution_done(), and SWITCH_THRU_ALL_UIS.

Referenced by fetch_inferior_event(), and step_1().

◆ all_uis_on_sync_execution_starting()

void all_uis_on_sync_execution_starting ( void  )

◆ clear_exit_convenience_vars()

void clear_exit_convenience_vars ( void  )

Definition at line 9077 of file infrun.c.

References clear_internalvar(), and lookup_internalvar().

Referenced by core_open(), and handle_inferior_event_1().

◆ clear_proceed_status()

void clear_proceed_status ( int  step)

◆ displaced_step_dump_bytes()

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

◆ fetch_inferior_event()

void fetch_inferior_event ( void *  )

◆ gdb_signal_from_command()

enum gdb_signal gdb_signal_from_command ( int  num)

◆ get_displaced_step_closure_by_addr()

struct displaced_step_closure* get_displaced_step_closure_by_addr ( CORE_ADDR  addr)

◆ get_last_target_status()

void get_last_target_status ( ptid_t ptid,
struct target_waitstatus status 
)

◆ get_stop_id()

ULONGEST get_stop_id ( void  )

Definition at line 2777 of file infrun.c.

References current_stop_id.

Referenced by save_stop_context(), and stop_context_changed().

◆ infrun_async()

void infrun_async ( int  enable)

◆ init_wait_for_inferior()

void init_wait_for_inferior ( void  )

◆ insert_step_resume_breakpoint_at_sal()

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

◆ mark_infrun_async_event_handler()

void mark_infrun_async_event_handler ( void  )

Definition at line 127 of file infrun.c.

References infrun_async_inferior_event_token, and mark_async_event_handler().

Referenced by attach_command(), and prepare_to_wait().

◆ maybe_remove_breakpoints()

void maybe_remove_breakpoints ( void  )

◆ normal_stop()

int normal_stop ( void  )

◆ prepare_for_detach()

void prepare_for_detach ( void  )

◆ print_end_stepping_range_reason()

void print_end_stepping_range_reason ( struct ui_out uiout)

◆ print_exited_reason()

void print_exited_reason ( struct ui_out uiout,
int  exitstatus 
)

◆ print_no_history_reason()

void print_no_history_reason ( struct ui_out uiout)

Definition at line 7977 of file infrun.c.

References ui_out::text().

Referenced by cli_on_no_history(), mi_on_no_history(), and tui_on_no_history().

◆ print_return_value()

void print_return_value ( struct ui_out uiout,
struct return_value_info rv 
)

◆ print_signal_exited_reason()

void print_signal_exited_reason ( struct ui_out uiout,
enum gdb_signal  siggnal 
)

◆ print_signal_received_reason()

void print_signal_received_reason ( struct ui_out uiout,
enum gdb_signal  siggnal 
)

◆ print_stop_event()

void print_stop_event ( struct ui_out uiout)

◆ print_target_wait_results()

void print_target_wait_results ( ptid_t  waiton_ptid,
ptid_t  result_ptid,
const struct target_waitstatus ws 
)

◆ proceed()

void proceed ( CORE_ADDR  ,
enum  gdb_signal 
)

Definition at line 2977 of file infrun.c.

References _, ALL_NON_EXITED_THREADS, annotate_starting(), regcache::arch(), regcache::aspace(), breakpoint_here_p(), thread_info::control, debug_infrun, discard_cleanups(), error(), EXEC_REVERSE, thread_info::executing, execution_direction, finish_thread_state_cleanup(), follow_fork(), fprintf_unfiltered(), gdb_assert, gdb_flush(), gdb_signal_to_symbol_string(), gdb_stdlog, gdb_stdout, gdbarch_single_step_through_delay(), gdbarch_single_step_through_delay_p(), get_current_frame(), get_current_regcache(), thread_control_state::in_infcall, INF_EXEC_COMPLETE, target_terminal::inferior(), inferior_event_handler(), inferior_ptid, inferior_thread(), infrun_async_inferior_event_token, init_thread_stepping_state(), keep_going_pass_signal(), make_cleanup(), make_scoped_defer_target_commit_resume(), mark_async_event_handler(), non_stop, normal_stop(), ordinary_breakpoint_here, paddress(), thread_info::prev_pc, previous_inferior_ptid, thread_info::ptid, ptid_match(), regcache::regcache(), regcache_read_pc(), regcache_write_pc(), reset_ecs(), thread_info::resumed, schedlock_applies(), set_running(), start_step_over(), step_over_info_valid_p(), thread_control_state::stepping_command, thread_info::stepping_over_breakpoint, stop_pc, thread_suspend_state::stop_signal, thread_info::suspend, switch_to_thread(), target_can_async_p, target_commit_resume(), target_is_non_stop_p(), target_pid_to_str(), thread_is_in_step_over_chain(), thread_step_over_chain_enqueue(), thread_still_needs_step_over(), user_visible_resume_ptid(), execution_control_state::wait_some_more, and thread_suspend_state::waitstatus_pending_p.

Referenced by attach_post_wait(), continue_1(), finish_backward(), finish_command(), finish_forward(), jump_command(), proceed_after_attach_callback(), proceed_after_vfork_done(), proceed_thread(), proceed_thread_callback(), run_command_1(), run_inferior_call(), signal_command(), step_1(), until_break_command(), and until_next_command().

◆ resume()

void resume ( enum  gdb_signal)

◆ set_last_target_status()

void set_last_target_status ( ptid_t  ptid,
struct target_waitstatus  status 
)

◆ set_step_info()

void set_step_info ( struct frame_info frame,
struct symtab_and_line  sal 
)

◆ signal_catch_update()

void signal_catch_update ( const unsigned int *  )

◆ signal_pass_state()

int signal_pass_state ( int  )

◆ signal_pass_update()

int signal_pass_update ( int  ,
int   
)

Definition at line 8417 of file infrun.c.

References signal_cache_update(), and signal_program.

Referenced by nto_initialize_signals().

◆ signal_print_state()

int signal_print_state ( int  )

Definition at line 8368 of file infrun.c.

References signal_print.

Referenced by print_one_stopped_thread().

◆ signal_print_update()

int signal_print_update ( int  ,
int   
)

Definition at line 8407 of file infrun.c.

References signal_cache_update(), and signal_print.

Referenced by check_thread_signals(), and nto_initialize_signals().

◆ signal_stop_state()

int signal_stop_state ( int  )

Definition at line 8362 of file infrun.c.

References signal_stop.

Referenced by handle_signal_stop().

◆ signal_stop_update()

int signal_stop_update ( int  ,
int   
)

Definition at line 8397 of file infrun.c.

References signal_cache_update(), and signal_stop.

Referenced by check_thread_signals(), and nto_initialize_signals().

◆ start_remote()

void start_remote ( int  from_tty)

◆ stepping_past_instruction_at()

int stepping_past_instruction_at ( struct address_space aspace,
CORE_ADDR  address 
)

◆ stepping_past_nonsteppable_watchpoint()

int stepping_past_nonsteppable_watchpoint ( void  )

Definition at line 1376 of file infrun.c.

References step_over_info::nonsteppable_watchpoint_p.

Referenced by should_be_inserted(), and step_over_info_valid_p().

◆ stop_all_threads()

void stop_all_threads ( void  )

◆ thread_is_stepping_over_breakpoint()

int thread_is_stepping_over_breakpoint ( int  thread)

Definition at line 1367 of file infrun.c.

References step_over_info::thread.

Referenced by should_be_inserted().

◆ update_observer_mode()

void update_observer_mode ( void  )

◆ update_signals_program_target()

void update_signals_program_target ( void  )

Definition at line 341 of file infrun.c.

References signal_program, and target_program_signals().

Referenced by remote_start_remote().

◆ user_visible_resume_ptid()

ptid_t user_visible_resume_ptid ( int  step)

◆ wait_for_inferior()

void wait_for_inferior ( void  )

Variable Documentation

◆ debug_displaced

int debug_displaced

Definition at line 156 of file infrun.c.

Referenced by _initialize_infrun(), aarch64_displaced_step_copy_insn(), aarch64_displaced_step_fixup(), amd64_displaced_step_copy_insn(), amd64_displaced_step_fixup(), amd64_relocate_instruction(), arm_copy_alu_imm(), arm_copy_alu_reg(), arm_copy_alu_shifted_reg(), arm_copy_b_bl_blx(), arm_copy_block_xfer(), arm_copy_bx_blx_reg(), arm_copy_copro_load_store(), arm_copy_extra_ld_st(), arm_copy_ldr_str_ldrb_strb(), arm_copy_preload(), arm_copy_preload_reg(), arm_copy_svc(), arm_copy_undef(), arm_copy_unmodified(), arm_copy_unpred(), arm_displaced_init_closure(), arm_linux_cleanup_svc(), arm_linux_copy_svc(), arm_linux_displaced_step_copy_insn(), arm_pc_is_thumb(), arm_process_displaced_insn(), BP_MANIPULATION_ENDIAN(), cleanup_block_load_all(), cleanup_block_load_pc(), cleanup_block_store_pc(), cleanup_svc(), displaced_read_reg(), displaced_step_prepare_throw(), displaced_step_restore(), displaced_write_reg(), fixup_riprel(), handle_inferior_event_1(), i386_displaced_step_copy_insn(), i386_displaced_step_fixup(), i386_relocate_instruction(), ppc_displaced_step_fixup(), resume_1(), s390_displaced_step_copy_insn(), s390_displaced_step_fixup(), thumb2_copy_alu_imm(), thumb2_copy_b_bl_blx(), thumb2_copy_block_xfer(), thumb2_copy_copro_load_store(), thumb2_copy_load_literal(), thumb2_copy_load_reg_imm(), thumb2_copy_preload(), thumb2_copy_table_branch(), thumb_32bit_copy_undef(), thumb_copy_16bit_ldr_literal(), thumb_copy_alu_reg(), thumb_copy_b(), thumb_copy_bx_blx_reg(), thumb_copy_cbnz_cbz(), thumb_copy_pc_relative_32bit(), thumb_copy_pop_pc_16bit(), thumb_copy_svc(), thumb_copy_unmodified_16bit(), thumb_copy_unmodified_32bit(), thumb_decode_pc_relative_16bit(), and thumb_process_displaced_insn().

◆ debug_infrun

unsigned int debug_infrun

◆ disable_randomization

int disable_randomization

◆ execution_direction

enum exec_direction_kind execution_direction

◆ non_stop

int non_stop

◆ sched_multi

int sched_multi

◆ step_over_queue_head

struct thread_info* step_over_queue_head

◆ step_stop_if_no_debug

int step_stop_if_no_debug

Definition at line 135 of file infrun.c.

Referenced by _initialize_infrun(), prepare_one_step(), and process_event_stop_test().

◆ stop_on_solib_events

int stop_on_solib_events