From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id n7cDJketCmCeIwAAWB0awg (envelope-from ) for ; Fri, 22 Jan 2021 05:47:35 -0500 Received: by simark.ca (Postfix, from userid 112) id 8C1C21EF80; Fri, 22 Jan 2021 05:47:35 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9185C1E945 for ; Fri, 22 Jan 2021 05:47:34 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85A8D398C016; Fri, 22 Jan 2021 10:47:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85A8D398C016 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1611312453; bh=C4W3A/upRrnkaOezzpnUpcNghq1wsj+QKcKyi5oemWU=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=gstyfEBWGT+4NdRG7WcMIPEA+kClDtxcpjxJtmtWKDZOMo4RkqXMDaMSFCsYjcj7B SHI225xHnDi43H/80DbGZUpg+Z1HQVxB4zuI4UJsw+8+3wbMkbbBMkalG3MZMur/Zt PHnN48jV5/YK7Mk2OYNBt8tFRAwlwSVQ1iPlhq/k= Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id C6C773890418; Fri, 22 Jan 2021 10:47:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C6C773890418 IronPort-SDR: PuIFPd1j9acaXGlqEXnnbuVxyLizDYiVoRil6ftSJXZWjiCJ8eMyvIwbmqJswRmanDI4AGqes9 QMPqLzpFYWNA== X-IronPort-AV: E=McAfee;i="6000,8403,9871"; a="179573354" X-IronPort-AV: E=Sophos;i="5.79,366,1602572400"; d="scan'208";a="179573354" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2021 02:47:26 -0800 IronPort-SDR: 7ovCQm0TNjejffBXC5viWHU+ZPUSC9WfcQtZ5r7Ev6v3c0mi1QY//rUG7QVSuR0v07GvOy+Q8i nvOFrSGyAsNQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,366,1602572400"; d="scan'208";a="467820887" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP; 22 Jan 2021 02:47:26 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 22 Jan 2021 02:47:25 -0800 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 22 Jan 2021 02:47:25 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 22 Jan 2021 02:47:25 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 22 Jan 2021 02:47:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lFFNfsUJjpzNW3OVf6G/k3yyV+L5cMy9RjKboo+bpCHL+nn2KsIo4nwFhIBf8RuMnyHzIQVJ54Do4nWYZbvYw9sNEppn3M39v/Nhsp7SvseAILrVproGWvEglhMBqF0kaMR68P3paBnZOrSBXMqBF9dAh+gNRMPm7jKGTRbGIvp78w/l3u8izqULuykOp/eIucn/TxopFKc80N2S0biprIDtADPsX23Cnq6bc0USGfJklQxjXlZi7NHTIuTsPFG/Q0bv/dgM/17L0uk4wghTtvygxhKtCdYOzx1H+Ie+c0WIUWCf66dmsayoHx+0NF8/PdNzPYIdeCcFKuNkrMADZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SQ0sdQB4PxQt09rvRSkpI4WmA6+9BPhx74IWDlANBPc=; b=lchPkJREaCi2HmpUrtGBDH7iIP+BWOdsg9UrslwE+dDyfWQQXjE8LolhEIbK1dgOGOfeFBQzDpxppuEIT0icGnIANU9jmjOX7XLZQwykVl0t+30IBSQda1il+WfktQPZOY0tyUiT7uGtToRCZXFA9ZltGMBsPGr+FkN5nXuer6R3Ti7GZlVLZa+SfyWyuXmWUTEXzRxBLotwDxespaakgL4I2dLXxOMuMEUustdv8M+3asUs813GrQZ78wMUeNlF88MdRQzQ4EdBDmmIFFkT2IvpBUNIprbf/ElzikUKX1JJmsu6uizmFzbr/5uMleBc+0X6gArj0+N8JsEmOaxBhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN6PR11MB1858.namprd11.prod.outlook.com (2603:10b6:404:100::22) by BN6PR11MB1683.namprd11.prod.outlook.com (2603:10b6:404:3f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Fri, 22 Jan 2021 10:47:24 +0000 Received: from BN6PR11MB1858.namprd11.prod.outlook.com ([fe80::e0a5:a9a3:af0b:a7ff]) by BN6PR11MB1858.namprd11.prod.outlook.com ([fe80::e0a5:a9a3:af0b:a7ff%7]) with mapi id 15.20.3763.014; Fri, 22 Jan 2021 10:47:24 +0000 To: Andrew Burgess , "gdb-patches@sourceware.org" , "binutils@sourceware.org" Subject: RE: [PATCHv2 2/9] bfd/binutils: support for gdb target descriptions in the core file Thread-Topic: [PATCHv2 2/9] bfd/binutils: support for gdb target descriptions in the core file Thread-Index: AQHW72oyi3YXZjYIxEm2S+Cf+XbkWKoza2tA Date: Fri, 22 Jan 2021 10:47:23 +0000 Message-ID: References: <5a9bb029efd1737d81d1e9ff0e82f359d4267113.1611172468.git.andrew.burgess@embecosm.com> In-Reply-To: <5a9bb029efd1737d81d1e9ff0e82f359d4267113.1611172468.git.andrew.burgess@embecosm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action x-originating-ip: [95.91.236.183] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 605b0542-14ed-4e3b-0e46-08d8bec31a2e x-ms-traffictypediagnostic: BN6PR11MB1683: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WPamgd2Y0Kmo5K7/tPwBgMQSxlmayl7BdCACOfzoUANdIA1Ijzf4U+JbCzokRHxvCSuI2IJ8TOKyXimHs3fIStfNv7x0Fa1Q1ug74mnBJKbEvfBWSA1kAVCQYquLY9muh0AnKrvXnRXkclb4fh6MSP4D9UWefyDTd+GwEWTNi3ugLU5FA49WrUejJKVD10g/IgsZ7TpfpJ5IHHZCuHUKsftGw0/hOJa7lOT/EC78Hzt4VCDoLtmQmJqLNhHyX7ZXAQpN66w+r4mJmxqloZZ/SJfcqFvgm501d8xIJybBbRfhGcKOGTDoYHUT2+zmISLT5ckduijraTMlXIRm6t6rRvbhtnyohOE7v8ZD9p/tXwEVtk/i8HADrZvKCjjK2CnQAV2lvqhMM9C4DzbTimRKLw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB1858.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(346002)(366004)(376002)(396003)(136003)(55016002)(9686003)(71200400001)(5660300002)(33656002)(7696005)(76116006)(478600001)(66946007)(66446008)(66476007)(186003)(8676002)(8936002)(52536014)(110136005)(83380400001)(86362001)(64756008)(4326008)(66556008)(53546011)(26005)(316002)(2906002)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ld54VLgXKk9QG96P8Tr4/n2vxlGApCY69SAo58/1+lQ0DpVWxIRQ/naAN6pU?= =?us-ascii?Q?Lh4gJGRui+Ut0X4TUB3EWojrHz/mdYLOljwH9GrhkVFdwzUn3zNnJrAj1hkh?= =?us-ascii?Q?8fI5hlvFbsRb5y683ANn1UGreiTSFOf5rCxuFR4t3EnlDCJ9NmquNmFzisuO?= =?us-ascii?Q?EF5bekh1K5Yu36w0eJTkv2EokuO8bDtOBK+7YxIbywM7dHebVaEduQ82S/IW?= =?us-ascii?Q?apW2p0mVvJwlGxqCgP3JYOR4HpkSntcv+bMdy4DHaOJx+yQ7SN4pOxe6DRNz?= =?us-ascii?Q?YbMlitIvpVh+AWz4UOAIch3ccQFzJ/LtlvhesV5mCr/4FCytq3MjCTmldZUK?= =?us-ascii?Q?kIrbXsAzk0hfyKcuERcXtruOO0LJBncoD5MC3WJAXBug6AO8W4fjyQBGgK7C?= =?us-ascii?Q?qp+MoMxTQlzGIkeMfb14J9E4Pi+Jnts3ml5bflpQQbBAQxUt15r2oCDgh7d3?= =?us-ascii?Q?aV1ENrMZhmHoTIGbmVdqdSr4V6fjB8F9QkD6p7OGopJSt83uqZxlHPVTVkC+?= =?us-ascii?Q?03FTROeD6BtTVT8ULbEGcbvwEPKEOaKiYMXv7VY5pw7b4NHjbGpmN29GR5V/?= =?us-ascii?Q?v+TtumHQQbof1kmB2GgeBO45tsD1vKaR+zKBjjIJdJzlHl3Zm8ioErNsQ5kk?= =?us-ascii?Q?/+i5esLIKvzfbZr7XinymNyQdbayS/MAPOWicMwSnjIW9qkOkUnXlcpRbs1Y?= =?us-ascii?Q?7Uj8Yt6/XYEBYcwaWb0BaMKmqpb5usFmrHX60/4MnpUSyJRu7tlfLgvz1ksa?= =?us-ascii?Q?Ko6KscuZZaY2J50pkMJ/vnFJqIgcif6oEU7qyN+Us9H2qGnVdPMUr8l05k8F?= =?us-ascii?Q?P3WUcuMnGorA9Rg7NWwCdcx3UHijT3NowfrbcuIXde/iv2KXuqnaB9GVWNIl?= =?us-ascii?Q?JpJysX7GMAgitGTyanozSxxaEoOpWfKZpUBYZ9s1wD6Wf8zLN6NgXnt/Yzns?= =?us-ascii?Q?eyc5Uje6nw06pIoK2qWHjJk09fY5n78mI9qptgh3SNI=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1858.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 605b0542-14ed-4e3b-0e46-08d8bec31a2e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2021 10:47:23.8981 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BYo+lib/IrFCC2TTPhurMjGDvqbylbcTR/L0MEa088blZ/B3KmNsQ9fEvXYI3CNFXIo8UaLUT+sZd5DnlcxVmjkdvnxRmQFhknFdP0sTYgI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1683 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable 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: , From: "Strasuns, Mihails via Gdb-patches" Reply-To: "Strasuns, Mihails" Cc: Fredrik Hederstierna Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" > -----Original Message----- > From: Gdb-patches On Behalf Of > Andrew Burgess > Sent: Wednesday, January 20, 2021 9:23 PM > To: gdb-patches@sourceware.org; binutils@sourceware.org > Cc: Fredrik Hederstierna > Subject: [PATCHv2 2/9] bfd/binutils: support for gdb target descriptions = in > the core file > = > This commit lays the ground work for allowing GDB to write its target > description into a generated core file. > = > The goal of this work is to allow a user to connect to a remote target, c= apture > a core file from within GDB, then pass the executable and core file to an= other > user and have the user be able to examine the state of the machine without > needing to connect to a running target. > > Different remote targets can have different register sets and this inform= ation > is communicated from the target to GDB in the target description. Why is it necessary to store a GDB target description for this? Core files = already define machine/arch, same as executable ELFs. There still can be so= me register variation between different platform versions, but it would sti= ll need to be denoted somehow in a native core file. My concern is for making a "GDB core file" and a "native core file" even mo= re different than it is currently on Linux. I guess this is aimed at a bare= bone environments where there is currently no native core dump support at a= ll but even there it is not guaranteed. = > It is possible for a user to extract the target description from GDB and = pass > this along with the core file so that when the core file is used the targ= et > description can be fed back into GDB, however this is not a great user > experience. > = > It would be nicer, I think, if GDB could write the target description dir= ectly > into the core file, and then make use of this description when loading a = core > file. > = > This commit performs the binutils/bfd side of this task, adding the boiler > plate functions to access the target description from within a core file = note, > and reserving a new number for a note containing the target description. > = > Later commits will extend GDB to make use of this. Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Gary Kershaw Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928