This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 5/6] New MI command -trace-frame-collected
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 14 Jun 2013 13:41:57 +0300
- Subject: Re: [PATCH 5/6] New MI command -trace-frame-collected
- References: <1370610493-26468-1-git-send-email-yao at codesourcery dot com> <1371086914-8398-1-git-send-email-yao at codesourcery dot com> <1371086914-8398-6-git-send-email-yao at codesourcery dot com> <83obbaw425 dot fsf at gnu dot org> <51BAE445 dot 5070300 at codesourcery dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 14 Jun 2013 17:37:09 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <gdb-patches@sourceware.org>
>
> On 06/13/2013 09:09 PM, Eli Zaretskii wrote:
> > What is meant by "explicitly wholly collected objects"? That phrase
> > got me confused, especially the "wholly" part.
> >
>
> In tracepoint actions, variables can be collected, in whole or part. As
> the doc explained below, if myVar, myArray[myIndex], and myObj.field are
> collected, only myVar is collected as a whole or wholly collected and
> the rest are not. If myObj is collected in actions, it is wholly
> collected too. myArray is partially collected, since only element on
> index myIndex is collected, and we call it computed expressions here.
This is not described anywhere in the manual. In fact, the word
"wholly" never appears in the manual and "whole" never appears in any
context related to tracepoints. In the node "Tracepoint Actions", we
don't make any distinction between collecting "in whole" and "in
part".
So if this distinction is important, please add to "Tracepoint
Actions" the explanation similar to what you wrote above, and then
make a cross-reference to that from the description of
-trace-frame-collected.
Thanks.