This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Remote protocol: Z-packets
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: Grace Sainsbury <graces at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 16 Aug 2002 13:48:49 -0400
- Subject: Re: Remote protocol: Z-packets
- References: <20020816124811.B28768@tomago.toronto.redhat.com>
The following function, a modified version of a patch written by
Fernando Nasser, can be used to probe for hardware break/watchpoint
support when called each time a watchpoint is created. This seems to
be the best way of doing this, but if anyone can think of a better way
I'd appreciate it.
I also think that it would be a good idea to change the errors that
are returned when insertion fails. Right now the same error is returned
for a syntax error, a bad address, or when the breakpoint registers
are full; so the error message the user gets cannot be very
specific.
Hmm, would you have an example of this code in action; and any notes on
what protocol changes would be needed?
At present the protocol says nothing about how to probe for sub-packet
support.
Andrew