From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17335 invoked by alias); 16 Jan 2018 09:52:00 -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 3587 invoked by uid 89); 16 Jan 2018 09:50:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=descriptions, Hx-spam-relays-external:15.20.0407.012, H*r:15.20.0407.012, H*RU:15.20.0407.012 X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr10041.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 16 Jan 2018 09:50:32 +0000 Received: from AM3PR08MB0101.eurprd08.prod.outlook.com (10.160.211.19) by AM3PR08MB0104.eurprd08.prod.outlook.com (10.160.211.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 09:50:28 +0000 Received: from AM3PR08MB0101.eurprd08.prod.outlook.com ([fe80::11:d2e2:886:ac9d]) by AM3PR08MB0101.eurprd08.prod.outlook.com ([fe80::11:d2e2:886:ac9d%17]) with mapi id 15.20.0407.012; Tue, 16 Jan 2018 09:50:28 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd Subject: [PATCH 0/6] : Remove XML files from gdbserver Date: Tue, 16 Jan 2018 09:52:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM3PR08MB0104;7:hRP06csAAl9HI0A9IMZKxG4cWV6pnAW3lbtHO1m8iXfCIK+ZS87KAKW9SKT2/ZZa5q6CGxBgci/K2ub+w514uBRb+1EhjX265EXfWl4TUyj55Kdo2tfTE1/17BDK50JM9MpNLc7u99QhRJN7nEYUqnrY3N5/mM/P0bFnGvSiyJyPcVFam4ag30eXq1s2445Yf9QrGMdK4dsXGA03M0umQZBi464Bw+JTI7iutxWIOnO26z5TUj/xxi2GzeGXj+tv x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 061a558d-3ca4-49c1-b5d0-08d55cc6934f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(48565401081)(2017052603307)(7153060)(7193020);SRVR:AM3PR08MB0104; x-ms-traffictypediagnostic: AM3PR08MB0104: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(944501161)(93006095)(93001095)(10201501046)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:AM3PR08MB0104;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AM3PR08MB0104; x-forefront-prvs: 0554B1F54F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(376002)(39380400002)(346002)(39860400002)(189003)(199004)(82746002)(6916009)(53936002)(68736007)(97736004)(6512007)(2900100001)(99286004)(305945005)(4326008)(7736002)(105586002)(4743002)(26005)(36756003)(5660300001)(6436002)(316002)(33656002)(72206003)(8676002)(81156014)(81166006)(5250100002)(8936002)(6486002)(2501003)(83716003)(6116002)(3846002)(14454004)(5640700003)(66066001)(3280700002)(106356001)(2351001)(25786009)(6506007)(2906002)(3660700001)(86362001)(478600001)(102836004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR08MB0104;H:AM3PR08MB0101.eurprd08.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: NW9OZMG+DzzyoYg+S8v5FYXPBpJanKVd6tyMMk5TtU7oCHh3n5QpY4LQgbD9vK97SXCXFcijqyp2GmV+lHIeLA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <5B0FCCC115B7B942B06C92D730D49E11@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 061a558d-3ca4-49c1-b5d0-08d55cc6934f X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2018 09:50:28.6141 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR08MB0104 X-IsSubscribed: yes X-SW-Source: 2018-01/txt/msg00287.txt.bz2 This set of patches removes the need for gdbserver to ship the xml files in the binary. In exisiting code, gdbserver uses C code auto generated from xml files to create target descriptions. When sending an xml description to GDB, it creates xml containing mostly just the name of the original xml file. With this new patch, we add common code that allows gdbserver and gdb to turn a C target description structure into xml. This allows gdbserver to send a full xml description. The first patch starts by commonising all the gdb target-description code, which is then used by gdbserver in patch two. Patch four is the meat, which adds the target description to xml parser, including adding a generic debug(tdesc) function. The other three patches proceed to remove the no longer required code and xml files. Patches have been tested on a make check on x86 targets=3Dall build with target board unix native-gdbserver. In addition, patch four adds new test cases to unit test. Alan.