GDB (xrefs)
|
Go to the source code of this file.
Functions | |
uint32_t | mips_linux_watch_get_irw_mask (struct pt_watch_regs *regs, int n) |
static uint32_t | get_reg_mask (struct pt_watch_regs *regs, int n) |
uint32_t | mips_linux_watch_get_num_valid (struct pt_watch_regs *regs) |
CORE_ADDR | mips_linux_watch_get_watchlo (struct pt_watch_regs *regs, int n) |
void | mips_linux_watch_set_watchlo (struct pt_watch_regs *regs, int n, CORE_ADDR value) |
uint32_t | mips_linux_watch_get_watchhi (struct pt_watch_regs *regs, int n) |
void | mips_linux_watch_set_watchhi (struct pt_watch_regs *regs, int n, uint16_t value) |
int | mips_linux_read_watch_registers (long lwpid, struct pt_watch_regs *watch_readback, int *watch_readback_valid, int force) |
uint32_t | mips_linux_watch_type_to_irw (enum target_hw_bp_type type) |
static CORE_ADDR | fill_mask (CORE_ADDR mask) |
int | mips_linux_watch_try_one_watch (struct pt_watch_regs *regs, CORE_ADDR addr, int len, uint32_t irw) |
void | mips_linux_watch_populate_regs (struct mips_watchpoint *current_watches, struct pt_watch_regs *regs) |
|
static |
Definition at line 212 of file mips-linux-watch.c.
References f().
Referenced by mips_linux_watch_try_one_watch().
|
static |
Definition at line 43 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, pt_watch_style_mips32, pt_watch_style_mips64, pt_watch_regs::style, mips32_watch_regs::watch_masks, and mips64_watch_regs::watch_masks.
Referenced by mips_linux_watch_try_one_watch().
int mips_linux_read_watch_registers | ( | long | lwpid, |
struct pt_watch_regs * | watch_readback, | ||
int * | watch_readback_valid, | ||
int | force ) |
Definition at line 154 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, mips32_watch_regs::num_valid, mips64_watch_regs::num_valid, pt_watch_style_mips32, pt_watch_style_mips64, ptrace, PTRACE_GET_WATCH_REGS, pt_watch_regs::style, watch_readback, and watch_readback_valid.
Referenced by mips_linux_nat_target::can_use_hw_breakpoint(), mips_linux_nat_target::insert_watchpoint(), mips_linux_nat_target::low_new_thread(), mips_linux_nat_target::region_ok_for_hw_watchpoint(), and mips_linux_nat_target::stopped_by_watchpoint().
uint32_t mips_linux_watch_get_irw_mask | ( | struct pt_watch_regs * | regs, |
int | n ) |
Definition at line 26 of file mips-linux-watch.c.
References IRW_MASK, pt_watch_regs::mips32, pt_watch_regs::mips64, pt_watch_style_mips32, pt_watch_style_mips64, pt_watch_regs::style, mips32_watch_regs::watch_masks, and mips64_watch_regs::watch_masks.
Referenced by mips_linux_nat_target::can_use_hw_breakpoint(), and mips_linux_watch_try_one_watch().
uint32_t mips_linux_watch_get_num_valid | ( | struct pt_watch_regs * | regs | ) |
Definition at line 59 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, mips32_watch_regs::num_valid, mips64_watch_regs::num_valid, pt_watch_style_mips32, pt_watch_style_mips64, and pt_watch_regs::style.
Referenced by mips_linux_nat_target::can_use_hw_breakpoint(), mips_linux_watch_populate_regs(), mips_linux_watch_try_one_watch(), mips_linux_nat_target::region_ok_for_hw_watchpoint(), and mips_linux_nat_target::stopped_by_watchpoint().
uint32_t mips_linux_watch_get_watchhi | ( | struct pt_watch_regs * | regs, |
int | n ) |
Definition at line 115 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, pt_watch_style_mips32, pt_watch_style_mips64, pt_watch_regs::style, mips32_watch_regs::watchhi, and mips64_watch_regs::watchhi.
Referenced by mips_linux_watch_try_one_watch(), mips_show_dr(), and mips_linux_nat_target::stopped_by_watchpoint().
CORE_ADDR mips_linux_watch_get_watchlo | ( | struct pt_watch_regs * | regs, |
int | n ) |
Definition at line 76 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, pt_watch_style_mips32, pt_watch_style_mips64, pt_watch_regs::style, mips32_watch_regs::watchlo, and mips64_watch_regs::watchlo.
Referenced by mips_linux_watch_try_one_watch(), and mips_show_dr().
void mips_linux_watch_populate_regs | ( | struct mips_watchpoint * | current_watches, |
struct pt_watch_regs * | regs ) |
Definition at line 318 of file mips-linux-watch.c.
References mips_watchpoint::addr, current_watches, mips_watchpoint::len, mips_linux_watch_get_num_valid(), mips_linux_watch_set_watchhi(), mips_linux_watch_set_watchlo(), mips_linux_watch_try_one_watch(), mips_linux_watch_type_to_irw(), mips_watchpoint::next, and mips_watchpoint::type.
Referenced by mips_linux_nat_target::insert_watchpoint(), and mips_linux_nat_target::remove_watchpoint().
void mips_linux_watch_set_watchhi | ( | struct pt_watch_regs * | regs, |
int | n, | ||
uint16_t | value ) |
Definition at line 132 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, pt_watch_style_mips32, pt_watch_style_mips64, pt_watch_regs::style, value, mips32_watch_regs::watchhi, and mips64_watch_regs::watchhi.
Referenced by mips_linux_watch_populate_regs(), and mips_linux_watch_try_one_watch().
void mips_linux_watch_set_watchlo | ( | struct pt_watch_regs * | regs, |
int | n, | ||
CORE_ADDR | value ) |
Definition at line 93 of file mips-linux-watch.c.
References pt_watch_regs::mips32, pt_watch_regs::mips64, pt_watch_style_mips32, pt_watch_style_mips64, pt_watch_regs::style, value, mips32_watch_regs::watchlo, and mips64_watch_regs::watchlo.
Referenced by mips_linux_watch_populate_regs(), mips_linux_watch_try_one_watch(), and mips_linux_nat_target::region_ok_for_hw_watchpoint().
int mips_linux_watch_try_one_watch | ( | struct pt_watch_regs * | regs, |
CORE_ADDR | addr, | ||
int | len, | ||
uint32_t | irw ) |
Definition at line 229 of file mips-linux-watch.c.
References fill_mask(), get_reg_mask(), IRW_MASK, mips_linux_watch_get_irw_mask(), mips_linux_watch_get_num_valid(), mips_linux_watch_get_watchhi(), mips_linux_watch_get_watchlo(), mips_linux_watch_set_watchhi(), and mips_linux_watch_set_watchlo().
Referenced by mips_linux_nat_target::insert_watchpoint(), mips_linux_watch_populate_regs(), and mips_linux_nat_target::region_ok_for_hw_watchpoint().
uint32_t mips_linux_watch_type_to_irw | ( | enum target_hw_bp_type | type | ) |
Definition at line 194 of file mips-linux-watch.c.
References R_MASK, and W_MASK.
Referenced by mips_linux_nat_target::insert_watchpoint(), and mips_linux_watch_populate_regs().