From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: Orjan Friberg Cc: gdb-patches@sources.redhat.com Subject: Re: Z packet support in Gdbserver? Date: Tue, 25 May 2004 15:27:00 -0000 Message-id: <20040525152659.GA22274@nevyn.them.org> References: <40B3650C.5090800@axis.com> X-SW-Source: 2004-05/msg00707.html On Tue, May 25, 2004 at 05:23:56PM +0200, Orjan Friberg wrote: > I noticed there's no support for z/Z packets for hardware watchpoints in > the gdbserver. (I searched the archives for this, but came up > empty-handed.) I'd guess that (from looking at ptrace.c for i386, where > it accesses the DR_ registers) that the Gdbserver gets to configure the > hardware breakpoint mechanism through ptrace (PTRACE_POKEUSR, ...). But > how does it get there in the first place, if not as a result of a z/Z > packet? Through direct register writes (G packet)? It's much simpler than that: gdbserver does not support hardware watchpoints. No one's ever implemented it. As a copy/paste exercise it would not be too hard; I still have pipe dreams of sharing the code with GDB someday. -- Daniel Jacobowitz