From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YN0wBLTZmWif0wkAWB0awg (envelope-from ) for ; Mon, 11 Aug 2025 07:53:24 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aQDEtIfP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id F07A21E10A; Mon, 11 Aug 2025 07:53:23 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-10.1 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 54B591E097 for ; Mon, 11 Aug 2025 07:53:23 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DAE1A3858C2F for ; Mon, 11 Aug 2025 11:53:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAE1A3858C2F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aQDEtIfP Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by sourceware.org (Postfix) with ESMTPS id BD59E3858D21 for ; Mon, 11 Aug 2025 11:52:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BD59E3858D21 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BD59E3858D21 Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=198.175.65.20 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1754913170; cv=fail; b=JISJPD/nj3uA/3k8aw/4knOhnyr1OBrdAx36ab6NgrpnIutC1wjd9eFcdoj65BdEy7Zd50SrDwb5WI/L/xbz9DsQMnj7UAvFBrPSN6Z6ejQ4LsjaovQgRXO6hC0/kU0MbW9f89jc6qWWWq7ZhEewhGaYcEQBkR/p1DoEjxKZkG8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1754913170; c=relaxed/simple; bh=jrUUfq2S4FJ76sIPxEAQyaaG4u7cyOQVDEAkB4/uRUs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UKAdCVgjoKKXJurR+2kINjMKOWYTo86RTOxWRkSGKCHhzdjXqfqaxvsB+2jJAvkVNbngjXaGW+8YIUu2PBW1cywGwgdJD/trecysMQPXQiujRSl8R5etj7oCbzIeEKw+ST7BoJvss50zKYksxmrlp2IkZs2R/0u3o5H0zyG5IPA= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD59E3858D21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1754913169; x=1786449169; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version:content-transfer-encoding; bh=jrUUfq2S4FJ76sIPxEAQyaaG4u7cyOQVDEAkB4/uRUs=; b=aQDEtIfPcorLDKVpiHkh1/hcRqYZg88JZp15unFn2V5SHG9gyTXxCCPc MziCQwhhPiwnUKXm5OB98aYU158ZG++/6GSPVbRPIPJMyFM5Ej8j/slz7 jW5YtZXKtLO9zQy745eVq/SI9k+o1+Uw8cwdzel8tbSwlc2LlXczy2e/P UZITT7305EPaBCniqiX3zIoeKy1dUTJ4CnOBDY9U7KTwl0t+loElvzURi UJODvaBT1hZD3V3dhWySDt0V/XGR+RCRnBZhmgCXEsIOQl2y48fw3qZew XDPAzsuUbao+hCZukqOrduqoO7sPlrrHW60r9/+UpIJs4BIMtNG4B/hh1 w==; X-CSE-ConnectionGUID: DcbTS5FLRwu5vSfg+0Z1mA== X-CSE-MsgGUID: xfNfcqB4QAim+F7cA9qTGA== X-IronPort-AV: E=McAfee;i="6800,10657,11518"; a="56875901" X-IronPort-AV: E=Sophos;i="6.17,278,1747724400"; d="scan'208";a="56875901" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2025 04:52:48 -0700 X-CSE-ConnectionGUID: Z3Md90SuTfGaqLM7p8DMTQ== X-CSE-MsgGUID: jTIt00aHRO6i1a20GGuZbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,278,1747724400"; d="scan'208";a="170336368" Received: from orsmsx902.amr.corp.intel.com ([10.22.229.24]) by orviesa004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2025 04:52:49 -0700 Received: from ORSMSX902.amr.corp.intel.com (10.22.229.24) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.26; Mon, 11 Aug 2025 04:52:48 -0700 Received: from ORSEDG903.ED.cps.intel.com (10.7.248.13) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.26 via Frontend Transport; Mon, 11 Aug 2025 04:52:48 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (40.107.101.72) by edgegateway.intel.com (134.134.137.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.26; Mon, 11 Aug 2025 04:52:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wgH3/lNjhYXiBR1IqabVmjlJvw4Gob5NVXZP3Db3N1Dn0tPMYizOoPhd4s67Hs/RQ7Ji0tqF9s/ci0yE96RJQh4i+lw6zmqe4NCiwpq6wtqSRWPamjJN7f3Uafc4QkDxSt72QEj2uKC664MGg59ZiCU3ZcbXrE3HMfbK5ad3I+u1E/umET4b3zufGuZOxD49cv7t5ycn7bI4g7sDZmvsNtwaXfUBzPltwVH9zoq/SdQNesJh2bBVN0lUf0Gr4dy0gWKr/9YCZeK0Fa8ayIz82+h5e90Q7e2+ctJgzyQ/8BZnBAoUJU5RmbVoffOnhDiaCghlYkGRgCFIlwlGJchdgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b6xJ4V4Y2yEipxb9SH9l+0X9QSaS/TkjHuTYbh7wXig=; b=DGphxz6GYfWLtL8W/zJU4bFlquS6H2LpPXNc+cRHh9cSZqU3t/Thkcw7vZnVpKLe2v8u7v9qsGFITZ7fFIl33hBczNiQmXFWJLsH5HdOhF6WmXJmjq+YEyM52G6MTCHoFZF0t09/wnPQD85BkRjeGdx1Uykj3S5sv2OM08jpxQXSzpJaNZbrNYdEjoaSHVlTaYZ1Zv/Ezja7lAE26ID4jVASP3tQNNYPxFddpaFG6pRPa698H86t9sKB8hLc+ysRN0wu8u2tdH5Da5K1bIg2cuamacX7xEChtEQ7447oEnOlx8+CL2WK2wN21KJKooYgd4nQq6FhMipxfm+bYv0t4g== 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 SN7PR11MB7638.namprd11.prod.outlook.com (2603:10b6:806:34b::22) by SJ0PR11MB5199.namprd11.prod.outlook.com (2603:10b6:a03:2dd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9009.18; Mon, 11 Aug 2025 11:52:46 +0000 Received: from SN7PR11MB7638.namprd11.prod.outlook.com ([fe80::25b8:16dc:755e:34d1]) by SN7PR11MB7638.namprd11.prod.outlook.com ([fe80::25b8:16dc:755e:34d1%5]) with mapi id 15.20.9009.013; Mon, 11 Aug 2025 11:52:46 +0000 From: "Schimpe, Christina" To: 'Luis' , Thiago Jung Bauermann CC: Andrew Burgess , "gdb-patches@sourceware.org" Subject: RE: [PATCH v5 07/12] gdb: amd64 linux coredump support with shadow stack. Thread-Topic: [PATCH v5 07/12] gdb: amd64 linux coredump support with shadow stack. Thread-Index: AQHb6AdfopZEH8KoZUSF1KMGj5X1tLRJXyMAgAC62TKAAIloEIAIE9sggAD73tSAAqTLAIAHPk3g Date: Mon, 11 Aug 2025 11:52:46 +0000 Message-ID: References: <20250628082810.332526-1-christina.schimpe@intel.com> <20250628082810.332526-8-christina.schimpe@intel.com> <87o6t3cawd.fsf@redhat.com> <87tt2u788x.fsf@linaro.org> <87cy9ajsr5.fsf@linaro.org> <40bebcad-2fcf-4340-82bb-2694be2af12c@gmail.com> In-Reply-To: <40bebcad-2fcf-4340-82bb-2694be2af12c@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7638:EE_|SJ0PR11MB5199:EE_ x-ms-office365-filtering-correlation-id: b22568c9-82ad-4309-73eb-08ddd8cd96b1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?034Ok0RnTmYoHG9eaeR6gxRaS5h6aFEVrL/ziy3Yp4ygVPcmhdFxr/1XPIvQ?= =?us-ascii?Q?yXraOUskRQCgAqagylGODU9GlR/f+bc/0Y6FHBygi1E0ZPu6w9SPVIVPONaN?= =?us-ascii?Q?WSdeX7rPFM7KRehAjTuFJOgGoEDgB0TyEyc3TEe88x1CB1+2G2V2hJmSxJ8S?= =?us-ascii?Q?+NjBBAuCtK5TYT3tc8bHPyHNqzRKPjNnc9cnWX73HlvFU8iS4j2NTLbua2xj?= =?us-ascii?Q?u6qpOcHyzPd7wdHpZaqWdYd4rHkB7Ibeu4jCri3PFXDIFEa0xWlFkeubpnMV?= =?us-ascii?Q?RkFrt2HioX3aB15R4PDm9jy9erCEni4F0GlaXlKPkVvz9m3r6D3xCIEnro+2?= =?us-ascii?Q?ICiGQIrEqrcfzRxKsp/2KdokWmgeMSD0gywKk1DwcLUD9r33wy2KkoM7utzk?= =?us-ascii?Q?ofTn3bq8LIMEyalZ+HuGer6jXuK0gGG3/JJkAOmgs9GMUSG0HAcP+W3fEq/C?= =?us-ascii?Q?LglH6t1+NtdpUA0lblpeNim+WO41eVO/NHoB3Au7ZHYGDN6DSdhIups0HeqZ?= =?us-ascii?Q?AkegFQv5wSpCZK1iCpHrhveYfJXGryo5lAAggv0Ff1LxSpf8gmY8juZvgqB4?= =?us-ascii?Q?E1s52lPJ0zYv9310PMWRHGPjftatEaB48LZu4KGlUr5wfIv5FlcpUAHmREM7?= =?us-ascii?Q?w0BJwIJCH+bql8tlPQX0w+P/U5azoC9u73YT7VkZWoVjfoFBERwpEpfrngLo?= =?us-ascii?Q?9TsKshVBkXNDFcW5g3Bfyi5zvHIrGEFD5KY05ngXufCwImn3tMn/lrtMf7oU?= =?us-ascii?Q?Az31Yi1AZX8loqgqkfpogcWiRXU68Gfc8K6sDFtEUn6rfRAEZ2B5ja85lbbZ?= =?us-ascii?Q?kEK9FV5Gah6cWnzM2xJsLtS6iR2hZMZi+HpOGSDfTHvjvoSjRVUE9tL9ZSgd?= =?us-ascii?Q?GYE4QdZfL9nEFsB1Zb1nioKNUkc+F7QWqJ3fDq7G7Ovq9LTpN6ZsEyPjOQXa?= =?us-ascii?Q?q54vDUxJbJVLeiAPNUBwLfJ8onbRHVtADgR1G5Hjoomt2GusQUJeoYuuP1iP?= =?us-ascii?Q?t20MaJD9x0p5z8FJ48Ki1HkHTdOW1pYm96YRHl/ggxdvrfCqivqYpHaqwcRM?= =?us-ascii?Q?Ndi8gksELJ8YkeORviR8bNmWN2ii/VkWkLrqfnW1JU0BVBrFIlVe6mDX5GxG?= =?us-ascii?Q?cREdTVB+fyEf/u8oRKuETVO4lhJf+zPeuWJyWpxrjxpKSHFvH/LaFN1o4c9F?= =?us-ascii?Q?8sQQQCi7fW3OjkDPDLEwKf/Tdy7+tSuatalFb3s5XZpWi+cdUT7gM0F6nXmO?= =?us-ascii?Q?uWO1YRjGSsVmYFJ/GkazSjq72S/cfHm82KQFgOpkZPgWUV1mZ3pVpQ4Y/7uy?= =?us-ascii?Q?JVIYeGuV4K2GXXzZT03i5zPtoal5mAt8rjCzKXhgOMB8YKyDaD3JVdcuaYx3?= =?us-ascii?Q?FlKoetE0mqICUSfACzZnWaygdozn4S8ZUop9eXokXd71RGm5+3F7CprnAAHD?= =?us-ascii?Q?Ra4FhEyrupAB0h2tePSlO+ItLMDHHbaB?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7638.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g7PcF/RIibW0njU4O0kzd/NiF4Oyv/1upy+rhNoh2W9dhyWWqTj9ATi0Q0sK?= =?us-ascii?Q?V+MRwXprWWQdgD5N3U4bEgI4rikZe4Vf7iIgDhNjIUOQ0v8LejRmZKuksBXi?= =?us-ascii?Q?YAB4cNA7+TaNkGnr1APwrtxX+0OUWmzJ8/ms9MmJ5mx1yMEfCZBFQoiB0tin?= =?us-ascii?Q?na3PqfdJ7Vh0mjbu0/BYaF5jOca7NTfxDYCuJsqf11JPrwdKPFUwnWXMqFTU?= =?us-ascii?Q?hOtlNRuGL5hWaHJhn2Thmj8lO1b/w2hWTl0iKL9G132EUNFHBRrGYN748Tp/?= =?us-ascii?Q?t9+hyv1nU5kq+lht08wlJGzd7w2T7qaScuEmTbrrzcirBqXw2J2KAsClL6ae?= =?us-ascii?Q?25zOegRxqFIRJROp5yxpr55NloMnXsdVkLx4V/TvHdE1OO8t4C3791uUOUHK?= =?us-ascii?Q?jhYN7Dgg+R8Lj8PCMt/VpOWGETsigCYl9piH3xYN/U2goBy3J9Qm9HvAqB1n?= =?us-ascii?Q?/LkSHGs/JnsGeI4YAGrohUF3kRCBh7J8xCQf0OMAGWlgGhDh4Yyv3j0jLPEU?= =?us-ascii?Q?fIy4J6LhVhwBIk5y/8D1XAJ2sPzVQRm0Xkg19pDdPqtbfyn8ovmkNO9QkYKc?= =?us-ascii?Q?m/6zgpSs6qJ7rcwLz8uhmPsDhRaIjwMLDWg8Nhx2seeoqXcySLuk0Gm1ci52?= =?us-ascii?Q?n8Sb/FrI+hMOBDLkYGrBuUEUUHpb48WdbH+Fc2uuwPzY+dVN9hdgEMt4Oock?= =?us-ascii?Q?XTI9CR/vhhaOMKg+4QoGQHZB7hAJ7p5ezFrv1SceHG+UntRj2Yxu5x9iUMnH?= =?us-ascii?Q?KoAfTPS/5WkkIqgSFHutVJcF/KSMnwDzCLzzLFHmGeUTBXdE1C9veh01O1Cb?= =?us-ascii?Q?6yVb3v6yq2zHGaMoLziVNO7owRaZ1hGOIZ4Ga0fI2m9UNwW4Mg+QWBLfWsrn?= =?us-ascii?Q?tyJAIY/PJMzmV9sJTXFCwkONU/kV2bpA6bafnsbhjGKLzjDgkqW5r3C4AkZ9?= =?us-ascii?Q?2bP2RZL3hE6j+1TGEpyIn5Ru0ksSO9PFpTMbAT62gppJZQlHTKeoNqou20Y4?= =?us-ascii?Q?vLb7lBNS6hbWZ0XigbtI19XzD+oo7uQCjV4Ul2DZlo6BPWApZhdlnPOkx5eJ?= =?us-ascii?Q?6Fe/eY9wOef7swGSgyww3e1bhHtdMZGGTFyn4HwCSDPR69XtoyTTLtd64+pD?= =?us-ascii?Q?cF1sqAv//s/8WwkdxISsUYg3uZ1hT+8M3dgHBTNRMSFwJFY86fX4CkqifABB?= =?us-ascii?Q?CWB6lc/OwC8fJ34poUkDsy1RXYa2gWBUi/i45wWH9ip+w095NPOaEri+GZ7V?= =?us-ascii?Q?UDsIRncHcSvj9K70ITiMwspc7qu0D5pvo6kiUvHf65S5CbmxtrBRgbzPrsJb?= =?us-ascii?Q?gAwiQU5o2+KfLRtS/6L/oNslfuT0RRVfcsA6/V6HFYXXUkekyBzf2hg8pqsg?= =?us-ascii?Q?MQ6N1PcmB7MwK8u9U48Ku/ikE6MlNVzC0HFJY0vzst0KfnSoeHvlgsheQTzl?= =?us-ascii?Q?oJcmAfVcCqbuESRZPiHf4drwoEiD/CUHwBHA3xSi7NtYGOEDwhFRTL+BnQYd?= =?us-ascii?Q?JlluT5TeDlFHvZCyscAS+VifbUYsghq6BTzDmlWnKAG9Jv/QYyOyTcBrFwgI?= =?us-ascii?Q?g+9WyfC4jkQ5AtygZbFefpwzFVTif1ScPXvHzwTBqv9IiTdnWFJu3OpSCTCP?= =?us-ascii?Q?qQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7638.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b22568c9-82ad-4309-73eb-08ddd8cd96b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Aug 2025 11:52:46.4522 (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: svZXDYE52LklBWJ6FKYrwDUOwEEFnvYvU/cvosxXfsK9Y/TqDTP6A34tYALHw2SfXV7Ic0pkM6gPvShcwWVaHLTqQXH1TNqOGfBUyYFmTp8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5199 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi Luis and Thiago, > -----Original Message----- > From: Luis > Sent: Wednesday, August 6, 2025 10:52 PM > To: Thiago Jung Bauermann ; Schimpe, > Christina > Cc: Andrew Burgess ; gdb- > patches@sourceware.org; luis.machado@arm.com > Subject: Re: [PATCH v5 07/12] gdb: amd64 linux coredump support with > shadow stack. > = > On 8/5/25 05:29, Thiago Jung Bauermann wrote: > > Hello, > > > > "Schimpe, Christina" writes: > > > >>>>>> + > >>>>>> + # At this point we have a couple of core files, the gcore > >>>>>> + one generated by > >>>>>> + # GDB and the one generated by the operating system. Make > >>>>>> + sure GDB can > >>>>>> + # read both correctly. > >>>>>> + > >>>>>> + if {$gcore_generated} { > >>>>>> + clean_restart $binfile > >>>>>> + > >>>>>> + with_test_prefix "gcore corefile" { > >>>>>> + check_core_file $gcore_filename $ssp_in_gcore > >>>>>> + } > >>>>>> + } else { > >>>>>> + fail "gcore corefile not generated" > >>>>> > >>>>> It's better, where possible, to avoid having pass/fail results > >>>>> that only show up down some code paths. > >>>>> > >>>>> In this case it's easy to avoid having a stray 'fail' by > >>>>> restructuring the code too: > >>>>> > >>>>> gdb_assert { $gcore_generated } "gcore corefile created" > >>>>> if { $gcore_generated } { > >>>>> ... etc ... > >>>>> } > >>>>> > >>>>> Now you'll always have either a pass or fail based on the gcore > >>>>> being generated. > >>>> > >>>> Good idea. I did that for aarch64-gcs-core.exp. > >> > >> If no OS corefile is found we will see a FAIL here. > >> The usual coredump testing doesn't fail in case the coredump file is n= ot > found. > >> So all gdb.base/corefile*.exp tests have sth. like: > >> > >> set corefile [core_find $binfile {}] > >> if {$corefile =3D=3D ""} { > >> return > >> } > >> > >> This can happen in case corefiles are managed, for instance, by apport= on > ubuntu. > >> Do we want a different behaviour ? > > > > Interesting point. Perhaps a FAIL Isn't the best result to report in > > this case, but IMHO it would be worth reporting an UNTESTED or perhaps > > UNSUPPORTED result rather than silently returning. > > > > I don't have a strong opinion on this matter though. > > > = > When testing core files, I usually change the core_pattern in > /proc/sys/kernel/core_pattern so the files are properly generated and sav= ed. > Personally I find it useful to have a FAIL output when the core file gene= ration > didn't work. Thank you for the feedback. I also use /proc/sys/kernel/core_pattern to fix core file testing on my mac= hine. However, by default corefiles do not work in our testsuite for the recent OS I have been testin= g (ubuntu 24, fedora 42). I created this RFC patch to clarify if we should use UNTESTED or FAIL: https://sourceware.org/pipermail/gdb-patches/2025-August/219880.html I know it's not the most important topic, but it would be nice if we could = agree on a commonly accepted solution. Christina Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928