Packing "R" actions in a QTDP packet
Jim Blandy
jimb@red-bean.com
Tue Nov 22 04:48:00 GMT 2005
On 11/21/05, Michael Snyder <msnyder@redhat.com> wrote:
> Jim Blandy wrote:
> > The code in stringify_collection_list will concatenate as many 'M' and
> > 'X' actions as it can in a packet, but it leaves 'R' actions in a
> > packet by themselves.
>
> Are you sure? That's not my recollection, though admittedly
> it's been 5 years or so... In my mental picture, the R bitmask
> goes somewhere in the QTDP message, just *before* the memranges.
Well, that's what the code does. It always does a savestring and
copies tmp_buf to the first entry in str_list, regardless of the size.
'count', used to track overall packet size in the 'M' and 'X' code,
doesn't even get used in the 'R' code.
> There is of course only one 'R' <thing> per tracepoint,
> because it's a bitmask...
Oops. That makes sense; I'd better document it.
More information about the Gdb
mailing list