This is the mail archive of the gdb@sourceware.org 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: Packing "R" actions in a QTDP packet


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.


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