This is the mail archive of the gdb@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: Remote Protocol: Z? packet proposal


[FYI, lucky Grace, is off at uni]

I think I've found one limitation with this.

@item @code{Z?}@code{,}@var{t}@code{,}@var{count} --- probe for breakpoint/watchpoint support @strong{(draft)}
@cindex @code{Z?} packet

@var{t} is type: see @ref{insert breakpoint or watchpoint
packet}. @var{count} is the number of breakpoints of type inserted
(including this one.)

Reply:
@table @samp
@item E00
for error -- packet type not supported
@item E01
for error -- hardware resources exhausted
@item E02
for error -- any other error
@item OK
for success
@item @samp{}
If not supported.
@end table
Often a target will be using a common set of resources to implement all the different watchpoint/breakpoint types.

With that in mind, I'd like to propose a slight extension:

@code{Z?}@code{,}@var{type}@code{,}@var{count}@{@code{;} @var{type}@code{,}@var{count}@}

i.e.,

Z?,1,4;3,5

It sends down a count for each watchpoint/breakpoint type. This will need a tweak to the internal interface.

Thoughts?

Andrew


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