From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2086.outbound.protection.outlook.com [40.107.20.86]) by sourceware.org (Postfix) with ESMTPS id 7A64A3858D33 for ; Wed, 8 Nov 2023 17:09:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A64A3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7A64A3858D33 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.20.86 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1699463346; cv=pass; b=bpwuBBXqNsfau5hDlRQrOWQTxPfLJ/nSMr0Jz25FzGoB4IgxKZ+KltreWDfTkBoWfrcfWA4SzXKMUJs1cw7ro8SQVpIyB1D5JYM8ox2Um40Qf/45gJPKBK3PEcDTwWJHc7TNCFRD6iYkRqIYfFgvnn5VwaREM4zrQmOFpkia67s= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1699463346; c=relaxed/simple; bh=i+C1vKxlxUdPl4xEaRsA+Ve57MpfPgtUTkzkGdoW3EI=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=juNEINhdMX/fRwZDWz0bRgGYlZzYOeYbxDHAukBMNjxyRB2LpOacdoTzvr7q/PjERZozIfCw/sAhBe+MaiDX9iVmi3c30fFfYVHR9rfH8bboCV3MtflRqW4Ii8kVGKvk/TuYTXnRD+dUju2+SaoC5tlxKrv5nsvttBEqJmIkI1A= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Ydezw2AAo+K9tx3tFeJM309VB051NiUVCV7jgoWpKnqyUFJHFlsuQcpIYIlFEG9YhATBmbFaTfU/AD7i8LwPlc3JCtIVdWWYWiTtqKd/quf6JMlLm/HPCuDjw8smZD6HFI4gZQwOoGjocGxQ03gQ5TRVI174mYRKABGabbpG9pAB2PovVzqjYvxkvr+EGmvk56zQPXIY65E6SJwjIwc8+tQXjA++r4HE9R1Fy94BXJzEkLWhwpiYKknff4XxcSHlwdaEqxcHZ0SbFPfNWcv+YsDi2lEqdV7phPuqn/qZn2dQ669qzn4c2iKWV5E9ZzSBTQJdNXxLhljbEJdDHjSX9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=9ESDMoJO1a66HtvmyZwV6xvzXqG1hHtcNnIMfSD41nM=; b=UEfd5crxK9fUX6VhnXL5BlxttKl8BnygRMOnJRz1AYOul+uI7I9Puh8OaOgnMJqd/oO2CbXBD10A0MAMzfCcLO2unWtpKOhaxowDvySwwPaHyVPJbseAlLBVQbFlTgk4iy8GypSS94GRbjM4LIr8hMQTKBdvWaKoU8YnzMEwTV2Q9V9Z+yN+KGBEXK2HQGpr+wALCYMw9FZ3LkhBSrxmxQNDJOy7GqzCZayrqATrb/+QijWnTceQoul+bFfYJqRilxP0BDTz7fzZiZVitrQWmgpRQbC0tb2m9pl1+nx710qhXbb/WHLHmQXQ68D/FTw6T0ugF4/P4Rx3poKCuOyB0A== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) 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=9ESDMoJO1a66HtvmyZwV6xvzXqG1hHtcNnIMfSD41nM=; b=i1vrRNu7ziEY3P8ZbyOn0xEVPgVIF7RAhfgnlcnQbvlaiNbSVVJi1GnF2ZoFMexzNBoaWjJLnue6v1elFaDzjJ4EFiZQqUq7NCByuKRoX8bp4wsB6bx03PkLLwOPes3Uy9IbIhwj4dzADOv7T2gmbYnkq6jYbKX8cDDK6qXjaB4= Received: from AM9P195CA0017.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:21f::22) by GV1PR08MB7849.eurprd08.prod.outlook.com (2603:10a6:150:5c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Wed, 8 Nov 2023 17:09:00 +0000 Received: from AM2PEPF0001C70D.eurprd05.prod.outlook.com (2603:10a6:20b:21f:cafe::6c) by AM9P195CA0017.outlook.office365.com (2603:10a6:20b:21f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.18 via Frontend Transport; Wed, 8 Nov 2023 17:08:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM2PEPF0001C70D.mail.protection.outlook.com (10.167.16.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.17 via Frontend Transport; Wed, 8 Nov 2023 17:08:59 +0000 Received: ("Tessian outbound 26ee1d40577c:v228"); Wed, 08 Nov 2023 17:08:59 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cfa657859093bc6d X-CR-MTA-TID: 64aa7808 Received: from 5cdf8725ae53.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 96001E73-3CB2-4977-BD2A-73ED4926DDA4.1; Wed, 08 Nov 2023 17:08:52 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5cdf8725ae53.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Nov 2023 17:08:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mOoXo2j68goCuBqe8gqKofzheugoBUEuP8MBTuSx7pEr7PerZ1qSQTcMgHl5P5NOugheb5/Jq/7DmgmbxeFmckwz3d+3x09Ep1Gu2stlMv9XRRai9aG76arww+ED9Ty97HXJQdBGMp5gcJS+g1T/R7XsHe1s6plGZhJ1ryihoGx/MSmK8MlBeCTfSIuLqYrFGBvNx1OEZjYKKVx42Qcfe51MpeFQcPW+JyEQS7ME+9mLA3vaazfDTbahHtL8SrQBagWjq7l/HJPAjhXfM6CMrZbWteUkuihJHgpZx5uN8qBi34BzSghO6wpJIVIDG9NjTG7Gzns4x2ZpJcAfd4JzmA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9ESDMoJO1a66HtvmyZwV6xvzXqG1hHtcNnIMfSD41nM=; b=FHtPA+wmsyi2yIMP5WjVQG+kC3whr8SBJLnP8vX6q1OBbkG/IE79TId2RInlsQlB0g5DJJshN27qY0z41Hv5C9eyZ2o82lZ4HvY9vWnaaD3J0s3W7lvv3729znOT5DyAKvfs+njj3InIltkG+0xcLQ6WxWRVPaIxI2V6G2nayN7J8mQKzASYD03wtpr3RaEY2PGaS/Z0rXqteOTJa326gObT+rxHnl+rxRfosRaEPJLPjvBhKctMFCVBJ7WG8o2z0IOQ5OGUzyBgprZJwc96iFsHx+dEWU7CCqyMpts6lW5NhzqW2nbOaVJjbdno8ughboxpDEPiSrU9pB7KVXUp1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none 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=9ESDMoJO1a66HtvmyZwV6xvzXqG1hHtcNnIMfSD41nM=; b=i1vrRNu7ziEY3P8ZbyOn0xEVPgVIF7RAhfgnlcnQbvlaiNbSVVJi1GnF2ZoFMexzNBoaWjJLnue6v1elFaDzjJ4EFiZQqUq7NCByuKRoX8bp4wsB6bx03PkLLwOPes3Uy9IbIhwj4dzADOv7T2gmbYnkq6jYbKX8cDDK6qXjaB4= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DB7PR08MB3914.eurprd08.prod.outlook.com (2603:10a6:10:32::32) by AS4PR08MB7685.eurprd08.prod.outlook.com (2603:10a6:20b:504::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.18; Wed, 8 Nov 2023 17:08:51 +0000 Received: from DB7PR08MB3914.eurprd08.prod.outlook.com ([fe80::b8b4:6bc5:52c3:abc8]) by DB7PR08MB3914.eurprd08.prod.outlook.com ([fe80::b8b4:6bc5:52c3:abc8%6]) with mapi id 15.20.6954.028; Wed, 8 Nov 2023 17:08:50 +0000 Message-ID: Date: Wed, 8 Nov 2023 17:08:49 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/24] Fix reading and writing pseudo registers in non-current frames Content-Language: en-US To: Simon Marchi , gdb-patches@sourceware.org References: <20231108051222.1275306-1-simon.marchi@polymtl.ca> <9a693dcc-9213-4300-a4ee-25820bfada78@arm.com> From: Luis Machado In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0434.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::14) To DB7PR08MB3914.eurprd08.prod.outlook.com (2603:10a6:10:32::32) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DB7PR08MB3914:EE_|AS4PR08MB7685:EE_|AM2PEPF0001C70D:EE_|GV1PR08MB7849:EE_ X-MS-Office365-Filtering-Correlation-Id: d8cefcad-f854-4aa9-3df7-08dbe07d6689 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: o2Uj+sVtt1y8X/ZRQ5Vy6NiOtP0upq0Krw6ig7c3B04T6NBUjryqmdR2myoVcwurPCxfJLztq3RZs+RYXkvWPzEKahoVj/BfY4te+l1ax9h0MbQlo31o3G2OWszN+Vf2PXjofO802vrOxyIwvyS4tvRH3noaQ3bmLfaZQYPNVRqYXb/GGkkJHPd/tUODkyeC0gqxJCzIo6V4lgeY+hHGDtG6ie25v8sWSTLe9ywV9FeMDfRhwUyiRfchy0jWgaThZ20Au1Cqj0P4nexVzRvl6nx7mImDo6Iw607KBs62EkijL76zij2lf3zH+uQg/DrPNXyJD/fRhqq2zUxCUb607wHEHiRuFIKK89NfiI3yKvHds0/x78bmNE2oY1jzdqnkJfphFB1NA7WleC2UoCOkH2joNwNhO1R5vm+CrMwYBtLmlxtbqQb4Msy0U+vqxqLSlDdSRu5FSNWEqE/oAua11HgGBFptocyDk6E0fsxCgLfPPVrlrg9FhKPNPIF+4N6CFxnRfZWF8j6NT0j3qT6mZyWP/3h851rtyo+duucrv0lbInSE3HTTaz/KXYHLIxtTO4NJlVeYCM72JabPzagTwsHDPTP7V8Nic8f+rKFl/Wi7UiZZ6FNeCI6d1xSPSAh4gNyfMKHaboUGFFdsqX8WZA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3914.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(376002)(396003)(39860400002)(366004)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(2906002)(31686004)(44832011)(84970400001)(41300700001)(8676002)(8936002)(5660300002)(66556008)(316002)(66476007)(66946007)(31696002)(6486002)(26005)(478600001)(6512007)(53546011)(36756003)(2616005)(6506007)(86362001)(83380400001)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7685 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM2PEPF0001C70D.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 71f47d69-1e37-4d5f-7a3f-08dbe07d610f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BAQBnPIxx92ltipupHoCbT4WiYSittJ9HyYLJJbEzBOWb/q75ipDcPdDr3WhLCCozzUG1K63nQmf8Qb+sxMxvJ2T/hTpE9WZqQWW5uY57HVinSIxP1/E9Ncf6BWWLLkva+v8Zc9Ixabdy8/Q3DdaFTIHHLsIp6OIYwknH2oOv/zO/0cbraPk0DLWV0r4tzB1t70APlsJZG2nv+qRzIZBMnEX5BQ6BDPTjOyPmf4hPtpXCx7o/fgeCKcio+FicGISEugBLLJb93a7CRLbkwuHsi34vWjEnGOP8ac/HGUAIwfYf0Fqr5xTREfcnfCQxdmk+UQF03mryk8py8/d5xSZp8MhGTcFonNngGoaz0xpSXZwhOTJEn2u7/jKYfP10QVUC+ljZSSRw1ZC+YbIIHUdaN7HOcDeFN8k3xKDGBhSGXSTNSrA+47XuSl03j1QbPkFURT0GalRtzRgUqCXul31n0Kb6S31btX0tUZ+y78eT97Qlc1wot19Vj9Ltb7koyihTRYtwpgaETgyO2lTSypIJE0ZjVxQHGY2wuH3A4YLtA8htUKte6csCyLjy3s3NLgpXM6PpSfvrXHjATlxPsuYo7wRY3iRhZBn1WrGOGJ0ijW+550XoXXVukOe0K2E1svEcKZrHgQGtYPovEjs851mpKBlKoIFUs9IJbPM4sogW/CcjR3qVp/4gNMGDSZTQ7F6uwESqyr4rxUL51w3z0xuwIreywjdPdo2OOarLj0BsTkV/Jahd+btb0nalH8K2+p8 X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(4636009)(396003)(136003)(39860400002)(346002)(376002)(230922051799003)(64100799003)(451199024)(186009)(82310400011)(1800799009)(40470700004)(46966006)(36840700001)(316002)(8676002)(36756003)(41300700001)(40480700001)(8936002)(2906002)(31696002)(84970400001)(36860700001)(5660300002)(6486002)(53546011)(47076005)(6512007)(356005)(31686004)(86362001)(81166007)(44832011)(40460700003)(70206006)(83380400001)(70586007)(336012)(26005)(82740400003)(2616005)(6506007)(478600001)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2023 17:08:59.7923 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8cefcad-f854-4aa9-3df7-08dbe07d6689 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C70D.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7849 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/8/23 15:47, Simon Marchi wrote: >> I haven't tracked the particular patch that causes this, but for aarch64 systems supporting SVE >> (and probably SME as well) I'm seeing internal errors related to one assertion: > Thanks a lot for testing. > >> Running gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp ... >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: continue to breakpoint: continue to callee >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: callee, before change: p/x $v8.q.u >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: callee, before change: p/x $s8.u >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: set $s8.u = 0x34353637 (GDB internal error) >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change: p/x $v8.q.u >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change: p/x $s8.u >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: up >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: caller, before change: p/x $v8.q.u >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: caller, before change: p/x $s8.u >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: set $s8.u = 0x44454647 (GDB internal error) >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: caller, after change: p/x $v8.q.u >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: caller, after change: p/x $s8.u >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: down >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change in caller: p/x $v8.q.u >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change in caller: p/x $s8.u >> PASS: gdb.arch/aarch64-pseudo-unwind.exp: continue to breakpoint: continue to break_here_c >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: p/x value >> Running gdb/testsuite/gdb.arch/aarch64-fp.exp ... >> PASS: gdb.arch/aarch64-fp.exp: set the breakpoint after setting the fp registers >> PASS: gdb.arch/aarch64-fp.exp: continue until breakpoint >> PASS: gdb.arch/aarch64-fp.exp: check register q0 value >> PASS: gdb.arch/aarch64-fp.exp: check register q1 value >> PASS: gdb.arch/aarch64-fp.exp: check register v0 value >> PASS: gdb.arch/aarch64-fp.exp: check register v1 value >> PASS: gdb.arch/aarch64-fp.exp: check register fpsr value >> PASS: gdb.arch/aarch64-fp.exp: check register fpcr value >> FAIL: gdb.arch/aarch64-fp.exp: bfloat16: set h0.bf to 129 (GDB internal error) >> FAIL: gdb.arch/aarch64-fp.exp: bfloat16: h0 fields are valid >> FAIL: gdb.arch/aarch64-fp.exp: bfloat16: set v0.h.bf[0] to 0 (GDB internal error) >> FAIL: gdb.arch/aarch64-fp.exp: bfloat16: v0.h.s[0] is 0 >> FAIL: gdb.arch/aarch64-fp.exp: bfloat16: set v0.h.bf[0] to 129 (GDB internal error) >> FAIL: gdb.arch/aarch64-fp.exp: bfloat16: v0.h.s[0] is 129 >> >> The failure mode is: >> >> set $s8.u = 0x34353637^M >> ../../../repos/binutils-gdb/gdb/frame.c:1441: internal-error: put_frame_register: Assertion `buf.size () == size' failed.^M >> A problem internal to GDB has been detected,^M >> further debugging may prove unreliable.^M >> ----- Backtrace -----^M >> FAIL: gdb.arch/aarch64-pseudo-unwind.exp: set $s8.u = 0x34353637 (GDB internal error) >> Resyncing due to internal error. >> 0xaaaaabd6e08f gdb_internal_backtrace_1^M >> ../../../repos/binutils-gdb/gdb/bt-utils.c:122^M >> 0xaaaaabd6e08f _Z22gdb_internal_backtracev^M >> ../../../repos/binutils-gdb/gdb/bt-utils.c:168^M >> 0xaaaaac315307 internal_vproblem^M >> ../../../repos/binutils-gdb/gdb/utils.c:396^M >> 0xaaaaac31556f _Z15internal_verrorPKciS0_St9__va_list^M >> ../../../repos/binutils-gdb/gdb/utils.c:476^M >> 0xaaaaac8604e3 _Z18internal_error_locPKciS0_z^M >> ../../../repos/binutils-gdb/gdbsupport/errors.cc:58^M >> 0xaaaaabec89c7 _Z18put_frame_register14frame_info_ptriN3gdb10array_viewIKhEE^M >> ../../../repos/binutils-gdb/gdb/frame.c:1441^M >> 0xaaaaabc55243 aarch64_pseudo_write_1^M >> ../../../repos/binutils-gdb/gdb/aarch64-tdep.c:3316^M >> 0xaaaaabc5c943 aarch64_pseudo_write^M >> ../../../repos/binutils-gdb/gdb/aarch64-tdep.c:3414^M > > Ok, then I presume the regression is introduced with patch "gdb: migrate > aarch64 to new gdbarch_pseudo_register_write". > >> It is also worth noting that the v registers are *not* pseudo-registers when the aarch64-fpu feature is used. If SVE >> is available though, then that means the v registers are pseudo-registers as well. You can tell them apart by their types. >> >> Real register (no SVE support): >> >> type = union aarch64v { >> vnd d; >> vns s; >> vnh h; >> vnb b; >> vnq q; >> } >> >> Pseudo-register (SVE support): >> >> union __gdb_builtin_type_vnv { >> __gdb_builtin_type_vnd d; >> __gdb_builtin_type_vns s; >> __gdb_builtin_type_vnh h; >> __gdb_builtin_type_vnb b; >> __gdb_builtin_type_vnq q; >> } > > Ok, thanks for that explanation. If you recall, I asked you on IRC if > the V registers were always 16 bytes long, and you said yes. That's why > I hardcoded the size of 16 in aarch64_pseudo_write_1. But then Right. The V registers are always 16 bytes long, being real or pseudo-registers. So their sizes are fixed. The other pseudo-registers are also fixed size. What chages is the size of the SVE register the V/Q/D/S/H/B pseudo-registers map to. > according to your explanation, when SVE is available, the raw register > behind S registers, for instance, is an SVE register whose length is > unknown at compile time. That's why the existing code calls > register_size to get the size of the raw register. > > If you apply the patch below, does it help? It gets rid of the internal error due to the assertion, but I still see FAIL's due to wrong values being printed. FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change: p/x $v8.q.u FAIL: gdb.arch/aarch64-pseudo-unwind.exp: caller, after change: p/x $v8.q.u FAIL: gdb.arch/aarch64-pseudo-unwind.exp: caller, after change: p/x $s8.u FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change in caller: p/x $v8.q.u FAIL: gdb.arch/aarch64-pseudo-unwind.exp: continue to breakpoint: continue to break_here_c FAIL: gdb.arch/aarch64-pseudo-unwind.exp: p/x value FAIL: gdb.arch/aarch64-fp.exp: bfloat16: h0 fields are valid p/x $v8.q.u $3 = {0xaaab34353637} (gdb) FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change: p/x $v8.q.u -- p/x $v8.q.u $7 = {0xaaab34353637} (gdb) FAIL: gdb.arch/aarch64-pseudo-unwind.exp: caller, after change: p/x $v8.q.u -- p/x $s8.u $8 = 0x34353637 (gdb) FAIL: gdb.arch/aarch64-pseudo-unwind.exp: caller, after change: p/x $s8.u -- p/x $v8.q.u $9 = {0xaaab34353637} (gdb) FAIL: gdb.arch/aarch64-pseudo-unwind.exp: callee, after change in caller: p/x $v8.q.u -- Program received signal SIGSEGV, Segmentation fault. 0x0000aaab0fad6e60 in ?? () (gdb) FAIL: gdb.arch/aarch64-pseudo-unwind.exp: continue to breakpoint: continue to break_here_c p/x value No symbol "value" in current context. (gdb) FAIL: gdb.arch/aarch64-pseudo-unwind.exp: p/x value testcase binutils-gdb/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp completed in 1 seconds Running binutils-gdb/gdb/testsuite/gdb.arch/aarch64-fp.exp ... -- p $h0 $7 = {bf = 1.136e-28, f = 0.00061798, u = 4368, s = 4368} (gdb) FAIL: gdb.arch/aarch64-fp.exp: bfloat16: h0 fields are valid > > Simon > > > diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c > index 1815d78dec40..87e6f9e10ae2 100644 > --- a/gdb/aarch64-tdep.c > +++ b/gdb/aarch64-tdep.c > @@ -3300,7 +3300,7 @@ aarch64_pseudo_write_1 (gdbarch *gdbarch, frame_info_ptr next_frame, > int regnum_offset, > gdb::array_view buf) > { > - unsigned v_regnum = AARCH64_V0_REGNUM + regnum_offset; > + unsigned raw_regnum = AARCH64_V0_REGNUM + regnum_offset; > gdb_static_assert (AARCH64_V0_REGNUM == AARCH64_SVE_Z0_REGNUM); > > /* Enough space for a full vector register. > @@ -3309,11 +3309,11 @@ aarch64_pseudo_write_1 (gdbarch *gdbarch, frame_info_ptr next_frame, > various 'scalar' pseudo registers to behavior like architectural > writes, register width bytes are written the remainder are set to > zero. */ > - constexpr int raw_reg_size = 16; > - gdb_byte raw_buf[raw_reg_size] {}; > + int raw_reg_size = register_size (gdbarch, raw_regnum); > + gdb::byte_vector raw_buf (raw_reg_size); > gdb::array_view raw_view (raw_buf); > copy (buf, raw_view.slice (0, buf.size ())); > - put_frame_register (next_frame, v_regnum, raw_view); > + put_frame_register (next_frame, raw_regnum, raw_view); > } > > /* Given REGNUM, a SME pseudo-register number, store the bytes from DATA to the >