This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Z packet support in Gdbserver?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Orjan Friberg <orjan dot friberg at axis dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 25 May 2004 11:26:59 -0400
- Subject: Re: Z packet support in Gdbserver?
- References: <40B3650C.5090800@axis.com>
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