[PATCH v2 0/5] mips hardware watchpoint support in gdbserver

Yao Qi
2013-06-29T03:11:12Z

Here is the V2 of this patch series which is to post Jie and Dan's work
to support mips hardware watchpoint in gdbserver. There are several
changes compared with V1:

- Keep these watchpoint-related structures as the fall back when
PTRACE_GET_WATCH_REGS is not defined.
- Re-org the patch series as Maciej suggested, split the function
renaming patch out of the function moving patch.
- Share 'enum target_hw_bp_type' in GDB and GDBserver, so that a new
file common/break-common.h is created.
- Some typos and code format issues are fixed.
- Rename 'debug register' to 'watch register' in comments and code.

Patch 1/5 is to share 'enum target_hw_bp_type' and patch 2/5 is to
include asm/ptrace.h in mips-linux-nat.c, but keep watchpoint related
structures as a fall back. Patch 3/5 is to refactor mips-linux-nat.c,
rename functions and update comments, etc. Patch 4/5 is to move mips h/w
wathcpoint stuff to common, and Patch 5/5 is to support h/w watchpoint
in gdbserver for MIPS.

The whole series is tested on a MIPS board with only one hardware
watchpoint register. I pick this patch up during the test, because
it fixes an internal error, so this patch series depend on it.

[RFC] Catch exception after stepped over watchpoint.
http://sourceware.org/ml/gdb-patches/2013-06/msg00866.html

*** BLURB HERE ***

Yao Qi (5):
Share 'enum target_hw_bp_type' in GDB and GDBserver.
Include asm/ptrace.h in mips-linux-nat.c
Refactor in mips-linux-nat.c
Move mips hardware watchpoint stuff to common/
MIPS GDBserver watchpoint

gdb/Makefile.in | 6 +-
gdb/NEWS | 3 +
gdb/breakpoint.h | 10 +-
gdb/common/break-common.h | 30 +++
gdb/common/mips-linux-watch.c | 352 ++++++++++++++++++++++++++++++++
gdb/common/mips-linux-watch.h | 129 ++++++++++++
gdb/config/mips/linux.mh | 2 +-
gdb/gdbserver/Makefile.in | 7 +-
gdb/gdbserver/configure.srv | 1 +
gdb/gdbserver/i386-low.c | 9 +-
gdb/gdbserver/linux-mips-low.c | 366 +++++++++++++++++++++++++++++++++
gdb/mips-linux-nat.c | 439 +++------------------------------------
12 files changed, 929 insertions(+), 425 deletions(-)
create mode 100644 gdb/common/break-common.h
create mode 100644 gdb/common/mips-linux-watch.c
create mode 100644 gdb/common/mips-linux-watch.h

--
1.7.7.6