Re: [PATCH 0/4] Save target description in tfile.

Yao Qi
2016-02-12T12:13:23Z

Marcin Kościelnicki <koriakin@0x04.net> writes:

> Well, that'd require rethinking the whole format - there's already the
> R' line, which is also global and specifies register packet size,
> which is probably different for every target (it's effectively a very
> poor kind of tdesc). There's also no way of assigning the tracepoints
> to inferiors, or for that matter to say what executable is running in
> what inferior (target tfile just picks the current one loaded in gdb).

Right, target file just chooses the current inferior in gdb, so the
trace file can not be used in a multi-inferior case, although it can be
generated in a multi-inferior case potentially.

>
> In effect, we'd have to prefix every single line with the inferior id
> (or otherwise include it), and the result is probably no better than
> just bundling several tfile files eg. in a zip (I don't think we have
> support for merging trace buffers from several sources anyhow).

Yes, generate trace files for each inferior is feasible, and the tdesc
can be the global state of each trace file.

--
Yao (齐尧)