GDB (xrefs)
Enumerations | Functions
common-regcache.h File Reference

Go to the source code of this file.

Enumerations

enum  register_status { REG_UNKNOWN = 0, REG_VALID = 1, REG_UNAVAILABLE = -1 }
 

Functions

struct regcacheget_thread_regcache_for_ptid (ptid_t ptid)
 
int regcache_register_size (const struct regcache *regcache, int n)
 
CORE_ADDR regcache_read_pc (struct regcache *regcache)
 
enum register_status regcache_raw_read_unsigned (struct regcache *regcache, int regnum, ULONGEST *val)
 
ULONGEST regcache_raw_get_unsigned (struct regcache *regcache, int regnum)
 

Enumeration Type Documentation

◆ register_status

Enumerator
REG_UNKNOWN 
REG_VALID 
REG_UNAVAILABLE 

Definition at line 25 of file common-regcache.h.

Function Documentation

◆ get_thread_regcache_for_ptid()

struct regcache* get_thread_regcache_for_ptid ( ptid_t  ptid)

Definition at line 454 of file regcache.c.

References get_thread_regcache(), and regcache::ptid().

Referenced by aarch64_point_is_aligned().

◆ regcache_raw_get_unsigned()

ULONGEST regcache_raw_get_unsigned ( struct regcache regcache,
int  regnum 
)

◆ regcache_raw_read_unsigned()

enum register_status regcache_raw_read_unsigned ( struct regcache regcache,
int  regnum,
ULONGEST val 
)

Definition at line 612 of file regcache.c.

References gdb_assert, regcache::raw_read(), and regnum.

Referenced by aarch64_record_asimd_load_store(), aarch64_record_branch_except_sys(), aarch64_record_load_store(), alpha_return_value(), amd64_linux_record_signal(), amd64_linux_syscall_record_common(), amd64_return_value(), amd64_windows_return_value(), arm_process_record(), arm_record_coproc_data_proc(), arm_record_data_proc_misc_ld_str(), arm_record_exreg_ld_st_insn(), arm_record_extension_space(), arm_record_ld_st_imm_offset(), arm_record_ld_st_multiple(), arm_record_ld_st_reg_offset(), arm_record_strx(), avr_pseudo_register_read(), h8300h_return_value(), hppa_pseudo_register_read(), i386_linux_record_signal(), i386_mmx_regnum_to_fp_regnum(), i386_mpx_bd_base(), i386_process_record(), i386_record_lea_modrm_addr(), i386_record_push(), i386_return_value(), i386_store_return_value(), i387_return_value(), m32c_read_flg(), m68k_return_value(), m68k_svr4_return_value(), mep_pseudo_csr_write(), mep_return_value(), msp430_pseudo_register_read(), ppc_linux_record_signal(), ppc_linux_syscall_record(), ppc_process_record(), ppc_process_record_op31(), ppc_process_record_op61(), pseudo_from_raw_register(), record_linux_system_call(), record_mem_at_reg(), regcache_raw_get_unsigned(), rl78_pseudo_register_read(), rl78_pseudo_register_write(), s390_linux_record_signal(), s390_process_record(), s390_pseudo_register_read(), s390_pseudo_register_write(), s390_record_address_mask(), s390_record_calc_disp(), s390_record_calc_disp_common(), sparc64_pseudo_register_read(), sparc64_pseudo_register_write(), spu_pseudo_register_read(), spu_pseudo_register_read_spu(), spu_pseudo_register_write(), spu_pseudo_register_write_spu(), thumb2_record_asimd_struct_ld_st(), thumb2_record_ld_st_dual_ex_tbb(), thumb2_record_ld_st_multiple(), thumb2_record_str_single_data(), thumb_record_ld_st_imm_offset(), thumb_record_ld_st_reg_offset(), thumb_record_ld_st_stack(), thumb_record_ldm_stm_swi(), thumb_record_misc(), vax_return_value(), xtensa_extract_return_value(), xtensa_pseudo_register_read(), xtensa_pseudo_register_write(), xtensa_push_dummy_call(), xtensa_read_register(), and xtensa_store_return_value().

◆ regcache_read_pc()

CORE_ADDR regcache_read_pc ( struct regcache regcache)

Definition at line 1229 of file regcache.c.

References _, regcache::arch(), gdbarch_addr_bits_remove(), gdbarch_pc_regnum(), gdbarch_read_pc(), gdbarch_read_pc_p(), internal_error(), NOT_AVAILABLE_ERROR, REG_UNAVAILABLE, regcache_cooked_read_unsigned(), and throw_error().

Referenced by aarch64_software_single_step(), adjust_pc_after_break(), aix_thread_wait(), alpha_software_single_step(), arm_breakpoint_kind_from_current_state(), arm_deal_with_atomic_sequence_raw(), arm_get_next_pcs_raw(), arm_linux_get_next_pcs_fixup(), arm_linux_get_next_pcs_syscall_next_pc(), btrace_add_pc(), cancel_breakpoint(), darwin_solib_get_all_image_info_addr_at_init(), default_skip_permanent_breakpoint(), displaced_step_fixup(), displaced_step_prepare_throw(), do_target_wait(), enable_break(), finish_step_over(), fork_load_infrun_state(), get_traceframe_location(), handle_inferior_event_1(), handle_signal_stop(), handle_syscall_event(), info_checkpoints_command(), keep_going_pass_signal(), keep_going_stepped_thread(), linux_nat_wait_1(), linux_resume_one_lwp_throw(), mips_software_single_step(), moxie_software_single_step(), nios2_software_single_step(), parse_spufs_run(), post_create_inferior(), ppc_deal_with_atomic_sequence(), proceed(), record_btrace_set_replay(), record_full_goto_entry(), record_full_message(), record_full_wait_1(), resume_1(), resume_stopped_resumed_lwps(), rs6000_software_single_step(), run_command_1(), s390_displaced_step_fixup(), s390_software_single_step(), save_bookmark_command(), save_stop_reason(), save_waitstatus(), spu_software_single_step(), status_callback(), stop_all_threads(), svr4_handle_solib_event(), switch_to_thread(), tfind_pc_command(), thread_still_needs_step_over_bp(), thumb_deal_with_atomic_sequence_raw(), thumb_get_next_pcs_raw(), tic6x_software_single_step(), and VEC().

◆ regcache_register_size()

int regcache_register_size ( const struct regcache regcache,
int  n 
)

Definition at line 179 of file regcache.c.

References regcache::arch(), and register_size().

Referenced by aarch64_point_is_aligned().