From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68974 invoked by alias); 21 May 2019 09:08:15 -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 68958 invoked by uid 89); 21 May 2019 09:08:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=Testsuite X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com Received: from mail-eopbgr40087.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.87) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 May 2019 09:08:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Bu7m+XEmi8xsabctLjwg7vXcRRx+UMPZl313jTVqMWA=; b=srPjeUxV2Qq72Hiz0ofo3xu5uSq9/paRb7O8eSBeqTxT2hdFRibswPMtDdsAEhYdTAbUOZ3r5UhPwqS9iYWVXk3YhuTpGg0Oa6Zuk9X4sDVTRoO3Fwx4vxu78lxTDEDBB2WGqpwqtDnJmwH2jmK2GbBXsgPlgakQ0u5rEamMjUo= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2246.eurprd08.prod.outlook.com (10.172.228.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Tue, 21 May 2019 09:08:02 +0000 Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::8c26:bb4b:6c93:9d40]) by DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::8c26:bb4b:6c93:9d40%2]) with mapi id 15.20.1900.020; Tue, 21 May 2019 09:08:01 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [PATCH] Document gdb.in/gdb.cmd files and debugredirect cli command Date: Tue, 21 May 2019 09:08:00 -0000 Message-ID: <20190521090758.62153-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:8882; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00466.txt.bz2 QWRkIG1pc3NpbmcgZG9jdW1lbnRhdGlvbiBmb3IgdGhlIGRlYnVncmVkaXJl Y3Qgc2V0dGluZy4NCg0KQWRkIGRlc2NyaXB0aW9uIGFuZCB1c2VzIG9mIGdk Yi5pbi9nZGIuY21kIHRvIHRoZSB0ZXN0c3VpdGUgUkVBRE1FLg0KDQpNZW50 aW9uIHRoaXMgaW4gdGhlIE5FV1MgZmlsZS4NCg0KW1dhc24ndCBzdXJlIGlm IHRlc3RzdWl0ZSBjaGFuZ2VzIGJlbG9uZ2VkIGluIE5FV1M/IElmIG5vdCBJ IGNhbg0KIGRyb3AgdGhhdCBwYXJ0XQ0KLS0tDQogZ2RiL05FV1MgICAgICAg ICAgICAgfCAxMSArKysrKysrKysrKw0KIGdkYi9kb2MvZ2RiLnRleGluZm8g IHwgIDMgKysrDQogZ2RiL3Rlc3RzdWl0ZS9SRUFETUUgfCAyMSArKysrKysr KysrKysrKysrKysrKysNCiAzIGZpbGVzIGNoYW5nZW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BcHBs ZSBHaXQtMTE3KQ0KDQo= >From gdb-patches-return-156235-listarch-gdb-patches=sources.redhat.com@sourceware.org Tue May 21 09:22:51 2019 Return-Path: Delivered-To: listarch-gdb-patches@sources.redhat.com Received: (qmail 20360 invoked by alias); 21 May 2019 09:22:51 -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 Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 20330 invoked by uid 89); 21 May 2019 09:22:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=Shell X-HELO: EUR03-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr50055.outbound.protection.outlook.com (HELO EUR03-VE1-obe.outbound.protection.outlook.com) (40.107.5.55) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 May 2019 09:22:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ncBtRgDdYfwKXpm26sXCQVkIqmw9e4CyejzKEVnZLVc=; b=rrTJDsHuFz1BcrJwPhvt4fs8rpJds+fIFeTwz9Bw9WfFr+1iGQKU8QkPR+XlRAU7H04t4GexGMrHqExJHahxImVSetSMjgU1gIEcj3ZSHb1WNUy27Gs2QyEaVjU3+2FtxGz7MOHNS+X2Sq2fT/ldV/Kce4+OSNpGSHNAYzJanGY= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2565.eurprd08.prod.outlook.com (10.172.251.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Tue, 21 May 2019 09:22:37 +0000 Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::8c26:bb4b:6c93:9d40]) by DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::8c26:bb4b:6c93:9d40%2]) with mapi id 15.20.1900.020; Tue, 21 May 2019 09:22:37 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd Subject: Re: [PATCH] Document gdb.in/gdb.cmd files and debugredirect cli command Date: Tue, 21 May 2019 09:22:00 -0000 Message-ID: <45BA9005-A7AB-4E72-B69F-78C7CA575F10@arm.com> References: <20190521090758.62153-1-alan.hayward@arm.com> In-Reply-To: <20190521090758.62153-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:9508; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="us-ascii" Content-ID: <8F8E059E2363FF40876F3E0A9AF7ABA3@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00467.txt.bz2 Content-length: 4198 And here are the missing ChangeLogs for it: gdb/ChangeLog: 2019-05-21 Alan Hayward * NEWS: Add debugredirect and testsuite sections. gdb/doc/ChangeLog: 2019-05-21 Alan Hayward * gdb.texinfo (Shell Commands): Add debugredirect. gdb/testsuite/ChangeLog: 2019-05-21 Alan Hayward * README (Re-running Tests Outside The Testsuite): New section. Alan. > On 21 May 2019, at 10:08, Alan Hayward wrote: >=20 > Add missing documentation for the debugredirect setting. >=20 > Add description and uses of gdb.in/gdb.cmd to the testsuite README. >=20 > Mention this in the NEWS file. >=20 > [Wasn't sure if testsuite changes belonged in NEWS? If not I can > drop that part] > --- > gdb/NEWS | 11 +++++++++++ > gdb/doc/gdb.texinfo | 3 +++ > gdb/testsuite/README | 21 +++++++++++++++++++++ > 3 files changed, 35 insertions(+) >=20 > diff --git a/gdb/NEWS b/gdb/NEWS > index 1e92a2b52c..792548139e 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -46,6 +46,10 @@ show print max-depth > The default max-depth is 20, but this can be set to unlimited to get > the old behavior back. >=20 > +set logging debugredirect [on|off] > + By default, GDB debug output will go to both the terminal and the logf= ile. > + Set if you want debug output to go only to the log file. > + > * New MI commands >=20 > -complete > @@ -53,6 +57,13 @@ show print max-depth > were to be given as a command itself. This is intended for use by MI > frontends in cases when separate CLI and MI channels cannot be used. >=20 > +* Testsuite > + > + The testsuite now creates the files gdb.cmd (containing the arguments > + used to launch GDB) and gdb.in (containing all the commands sent to > + GDB) in the output directory for each test script. Multiple invocatio= ns > + are appended with .1, .2, .3 etc. > + > *** Changes in GDB 8.3 >=20 > * GDB and GDBserver now support access to additional registers on > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 37e2f14ad0..bc21601606 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -1477,6 +1477,9 @@ you want @code{set logging on} to overwrite the log= file instead. > @item set logging redirect [on|off] > By default, @value{GDBN} output will go to both the terminal and the logf= ile. > Set @code{redirect} if you want output to go only to the log file. > +@item set logging debugredirect [on|off] > +By default, @value{GDBN} debug output will go to both the terminal and t= he logfile. > +Set @code{debugredirect} if you want debug output to go only to the log = file. > @kindex show logging > @item show logging > Show the current values of the logging settings. > diff --git a/gdb/testsuite/README b/gdb/testsuite/README > index b6487cf8c4..4795df1f75 100644 > --- a/gdb/testsuite/README > +++ b/gdb/testsuite/README > @@ -95,6 +95,27 @@ example: >=20 > The script will output its analysis report to the standard output. >=20 > +Re-running Tests Outside The Testsuite > +************************************** > + > +When running a test, the arguments used to run GDB are saved to gdb.cmd = and > +all commands sent to GDB are saved to gdb.in. As well as being a refere= nce > +of the commands run, they can be used to manually re-run a test by using > +the gdb.in file as a batch file to a GDB launched with the arguments in = the > +gdb.cmd file, for example: > + $(cat outputs/gdb.base/store/gdb.cmd) -x outputs/gdb.base/store/gdb.in > + > +Tests that run GDB multiple times will append .1, .2, .3 etc to the end > +of each .cmd and .in file. > + > +When gdbserver is launched as part of a test, a gdbserver.cmd will be cr= eated. > +To re-run these tests, run the contents of gdbserver.cmd in a separate > +terminal before running gdb, for example: > + $(cat outputs/gdb.base/store/gdbserver.cmd) > +Alternatively, if the test is run with GDBSERVER_DEBUG=3D"replay", then = this > +will create a gdbserver.replay file which can be used with the gdbreplay= tool, > +instead of launching gdbserver. > + > Running the Performance Tests > ***************************** >=20 > --=20 > 2.20.1 (Apple Git-117) >=20