Z packet support in Gdbserver?

Orjan Friberg orjan.friberg@axis.com
Wed May 26 11:10:00 GMT 2004


Andrew Cagney wrote:
There are two ways to implement h/w watchpoints: in the target (as was 
done for remote.c); or in the per-architecture code (as was done for 
native i386).  Both are correct.  The missing bit is code to get the 
per-architecture logic working with a remote target - this would involve 
juggling things so that the h/w watchpoint registers are included in the 
regcache and the target/arch to select either a local/remote mechanism.
Ok; I think I understand.  The CRISv32 target is unlikely to ever have a 
native debugger, but as a remote target it will be debuggable in kernel 
mode (using a traditional remote stub) and in user mode (using 
Gdbserver).  For kernel mode, I have implemented the h/w watchpoint 
register setup as a response to z/Z packets, so either I have to 
duplicate that in the Gdbserver, or move it all into GDB, and have it 
done through G packets.

--
Orjan Friberg
Axis Communications



More information about the Gdb-patches mailing list