This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc, gdbserver] Support hardware watchpoints on ARM
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: patches at linaro dot org
- Date: Wed, 21 Sep 2011 14:41:44 +0200 (CEST)
- Subject: Re: [rfc, gdbserver] Support hardware watchpoints on ARM
> * linux-arm-low.c: Include <signal.h>.
> (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
> (struct arm_linux_hwbp_cap): New data type.
> (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
> (struct arm_linux_hw_breakpoint): New data type.
> (MAX_BPTS, MAX_WPTS): Define.
> (struct arch_process_info, struct arch_lwp_info): New data types.
> (arm_linux_get_hwbp_cap): New function.
> (arm_linux_get_hw_breakpoint_count): Likewise.
> (arm_linux_get_hw_watchpoint_count): Likewise.
> (arm_linux_get_hw_watchpoint_max_length): Likewise.
> (arm_hwbp_control_initialize): Likewise.
> (arm_hwbp_control_is_enabled): Likewise.
> (arm_hwbp_control_is_initialized): Likewise.
> (arm_hwbp_control_disable): Likewise.
> (arm_linux_hw_breakpoint_equal): Likewise.
> (arm_linux_hw_point_initialize): Likewise.
> (struct update_registers_data): New data structure.
> (update_registers_callback: New function.
> (arm_insert_point): Likewise.
> (arm_remove_point): Likewise.
> (arm_stopped_by_watchpoint): Likewise.
> (arm_stopped_data_address): Likewise.
> (arm_new_process): Likewise.
> (arm_new_thread): Likewise.
> (arm_prepare_to_resume): Likewise.
> (the_low_target): Register arm_insert_point, arm_remove_point,
> arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
> arm_new_thread, and arm_prepare_to_resume.
I've checked this in now.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com