This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Z packet support in Gdbserver?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]