From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by sourceware.org (Postfix) with ESMTPS id 8F2523858D34 for ; Tue, 16 Jun 2020 20:51:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8F2523858D34 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x344.google.com with SMTP id t194so4478996wmt.4 for ; Tue, 16 Jun 2020 13:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=eSaESGTGp+ml9PUi+osEaJQqSl0y9BlH/k1Zj/0FB7c=; b=ON01emm0PGiofVbTKZGLuWxxUpUlpbVGifEpnjB5FkrtjaL3NRwaAI77Ktl5LLZBJm zJRrw3pwyPOSkz9N21EzCmmaZKanYheihRyblAumA9BNIVDQsrX16I628CLXPVWLwcz1 TlQZ6fRTbovo/l/COMQcEfgAqESbfs5IMxDwyrsW7jjVkV9T47C8B6zLdHEwgEoqF4Xy 1tXGrwwrDGYaJJjwgh4ocCe/vPil6yAq85XZVwlsm1aAW66AIxWxyxGcKzWyAAdfw7Io yRvqLB2eSN9SNDTSxminMHFNxXs9s2ESAHqS1GuSsdtFwrj5Qrus807A/88fUD+nNDwn L9tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=eSaESGTGp+ml9PUi+osEaJQqSl0y9BlH/k1Zj/0FB7c=; b=hbj9URLpBsXXW0XepSA7gwZkaRaNOPe6DxxhKmkvpboO1/LEq+PeHsEHKApZ+Rqrmd KgHvBjpB77mDcXw9vtgP12Tg2Hsh+XH7mAK3EKjO/qW90KcD8E622SLa3DIJEDkH02By Wo7TGpaWY/cnE5QFnJSCrqwwzS6AWWNitbzZqh2z/hF1lhaOz/06fON02Po6HE0/SDVG qyvZ+r0SNqKOe0EGYg29+YoihJ9H2X4bGeX0KZLm1Bg85C013eU16YK8LyhmKzV8RDfX BQdQU2H73mr1af7ppiYfFcD6r8bGhre4atMgpdMiwxnra42hJuAtErij/HbYm4x2+Hmn z1Ng== X-Gm-Message-State: AOAM531aiVa6bYrmxgmKepvH/vBSYrxnDmucnjC074kl7U4hvglu76fL ITbSuKTPsSBIAzc3K2UsGoRWH1tC3IU= X-Google-Smtp-Source: ABdhPJy9YU8CdOzpuqiXAgWopBuJMtTQIDHPWoVqKHLtHMXWXB5BD6s9Sb+VchGZiiAD8A70OhQXpw== X-Received: by 2002:a1c:f204:: with SMTP id s4mr5306374wmc.159.1592340698484; Tue, 16 Jun 2020 13:51:38 -0700 (PDT) Received: from localhost (host86-128-12-16.range86-128.btcentralplus.com. [86.128.12.16]) by smtp.gmail.com with ESMTPSA id v19sm5456087wml.26.2020.06.16.13.51.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 13:51:37 -0700 (PDT) Date: Tue, 16 Jun 2020 21:51:37 +0100 From: Andrew Burgess To: gdb-patches@sourceware.org Subject: Re: [PATCH 0/2] Additional maintenance command for dumping target descriptions Message-ID: <20200616205137.GU2737@embecosm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux/5.6.15-200.fc31.x86_64 (x86_64) X-Uptime: 21:50:20 up 8 days, 10:57, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 20:51:42 -0000 I messed up the in-reply-to header while posting a second iteration of this patch series. The replacement patches ended up here: https://sourceware.org/pipermail/gdb-patches/2020-June/169419.html Thanks, Andrew * Andrew Burgess [2020-06-11 11:41:29 +0100]: > After some fun and games debugging some target description issues I > finally got fed up enough to implement something that I've wanted for > a while. A mechanism to ask GDB what target description was sent from > the target. > > Patch #1 was a quick hack to `maint print c-tdesc', which was easy, > and did give me the information I needed, but the output format isn't > great for what I wanted, so > > Patch #2 allows GDB developers to see in XML form the description that > was sent from the target. > > Feedback welcome. > > Thanks, > Andrew > > > --- > > Andrew Burgess (2): > gdb: Allow target description to be dumped even when it is remote > gdb: New maintenance command to print XML target description > > gdb/ChangeLog | 17 +++ > gdb/NEWS | 6 + > gdb/doc/ChangeLog | 5 + > gdb/doc/gdb.texinfo | 9 ++ > gdb/target-descriptions.c | 102 +++++++++++++++- > gdb/testsuite/ChangeLog | 6 + > gdb/testsuite/gdb.xml/maint-xml-dump-01.xml | 10 ++ > gdb/testsuite/gdb.xml/maint-xml-dump-02.xml | 27 +++++ > gdb/testsuite/gdb.xml/maint-xml-dump.exp | 124 ++++++++++++++++++++ > gdbsupport/ChangeLog | 13 ++ > gdbsupport/tdesc.cc | 99 +++++++++++----- > gdbsupport/tdesc.h | 15 +++ > 12 files changed, 399 insertions(+), 34 deletions(-) > create mode 100644 gdb/testsuite/gdb.xml/maint-xml-dump-01.xml > create mode 100644 gdb/testsuite/gdb.xml/maint-xml-dump-02.xml > create mode 100644 gdb/testsuite/gdb.xml/maint-xml-dump.exp > > -- > 2.25.4 >