From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39613 invoked by alias); 12 Feb 2016 12:13:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 39602 invoked by uid 89); 12 Feb 2016 12:13:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1137 X-HELO: mail-pa0-f68.google.com Received: from mail-pa0-f68.google.com (HELO mail-pa0-f68.google.com) (209.85.220.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 12 Feb 2016 12:13:18 +0000 Received: by mail-pa0-f68.google.com with SMTP id gc2so3116pab.3 for ; Fri, 12 Feb 2016 04:13:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=RLO0iZvpYetxionXbeBX9lgxqd8lzfgBiwkqepd3gGo=; b=QbX14RmOiKNwLgT1NvWSpwv+SwGp/Y9bYQ1J5And1XFwKnSl+NWzijODOhvXr8UzlF RS5c4iW8UkYLtAGvu82yXplFqzLHltY04rH3XKJqyXfiyEUFHCanXus3pJrqd6VDmuRf ZK5VQwbnnV6cjc4XXuh3Ojii6zOb5kgYVFVJjfpya7CMvvw8S7rHfkvIdgKZX2RiObwK Na2P79ylLwXpwMt+5dXG6oftHEA5jZufA/03K0KDxWYCGgpYnSpQGKfvrcsZmCfeQfHO WtQeJ8HQG7iAsYJt0Q6cSh2g2MqjcRW13dp5ZREBjfv7Hm08/HfxYBu8E/wA/Ff9gkjI kpxw== X-Gm-Message-State: AG10YOQr9onfvZKVe2dlF7oUbu7MWgOsH19y6aeF3ppzn7J4DNc3LMvOfzedG2C3ZnqtDA== X-Received: by 10.66.129.232 with SMTP id nz8mr1606993pab.102.1455279197271; Fri, 12 Feb 2016 04:13:17 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id d8sm19178772pas.14.2016.02.12.04.13.14 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 12 Feb 2016 04:13:16 -0800 (PST) From: Yao Qi To: Marcin =?utf-8?Q?Ko=C5=9Bcielnicki?= Cc: Yao Qi , gdb-patches@sourceware.org Subject: Re: [PATCH 0/4] Save target description in tfile. References: <1454773157-31569-1-git-send-email-koriakin@0x04.net> <86ziv7no7i.fsf@gmail.com> <56BD3A20.5070409@0x04.net> Date: Fri, 12 Feb 2016 12:13:00 -0000 In-Reply-To: <56BD3A20.5070409@0x04.net> ("Marcin \=\?utf-8\?Q\?Ko\=C5\=9Bcielni\?\= \=\?utf-8\?Q\?cki\=22's\?\= message of "Fri, 12 Feb 2016 02:49:20 +0100") Message-ID: <86mvr6nn3b.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00409.txt.bz2 Marcin Ko=C5=9Bcielnicki 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. --=20 Yao (=E9=BD=90=E5=B0=A7)