This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/4] Save target description in tfile.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Marcin KoÅcielnicki <koriakin at 0x04 dot net>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 12 Feb 2016 12:13:12 +0000
- Subject: Re: [PATCH 0/4] Save target description in tfile.
- Authentication-results: sourceware.org; auth=none
- References: <1454773157-31569-1-git-send-email-koriakin at 0x04 dot net> <86ziv7no7i dot fsf at gmail dot com> <56BD3A20 dot 5070409 at 0x04 dot net>
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 (éå)