Message ID | 20240613185430.85352-10-nick.alcock@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 30DF83882168 for <patchwork@sourceware.org>; Thu, 13 Jun 2024 18:59:47 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 66A4A3882059 for <binutils@sourceware.org>; Thu, 13 Jun 2024 18:55:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 66A4A3882059 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 66A4A3882059 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1718304924; cv=pass; b=uTtKheHzcQ+LYJ/c1yixH1sl7WOsfd2Ka2ff/s15j8n/clPGatwPECDAAJossGPiJ2DU46vys23D47uDzSnahJOW1MK9ex8WL9vbapmmQ3rjVSgzNFLyCUDFrp4rZV43R4w4Kx6xtE+hn6ypGWHYHyWTpH/6HjjQ+jKfjcCoFBA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1718304924; c=relaxed/simple; bh=lUENVQ7piF0HRNlmPjnAmWvQrQFfHEiHa6H7sY6m5NY=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=sOHr6TCb3ZQvQNeY5suZsBkdihTUQ8WSlXFaOpRTwDiM9rvhdpvNzSZ8Xqdwsgkvg/CIauS7nm6hvYncRbQ7KlrSfndYFj1X7G82APuA1C/IDCdBBCyeGfW9BfQS/Mk9D5az7E4RBGQW2N6sMxlVxnetAK/n9K4Qneo/oBRUO78= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45DEtZwL004809 for <binutils@sourceware.org>; Thu, 13 Jun 2024 18:55:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=tM9nrdrUTGifEQUR1RU4L4dF+AgKT8isjV0y5EaPLOQ=; b= kKOzbuhAjKmJEmnyUnhqZrFVJgJ0NNiMuJ7aYGHYjDFjln3dLkpvshXtL8AdiQv+ KdfoGP8IW3OfxaRkGcL55aB7HSxahj1meYMKva8nyAkRRmgmxlOUhzfRZ59G512v ZGwwFRY6pyMs4OC63E95YBpfGboPUThFaYhq1dQLMdRmyFrrL8XNIi8ig2yAY75X pWmw92bnbuZ3aSw2Ly1Gqcqi1WztKFHh3AYvw4cAEf+LbxIL0xQafKRkxdg0YWWR HkspT038OwEGQxqNuJxy7oTPh6MxYmFJ+Nsfl28XxM+xyPpQW66QBRDw3hWLEGJg 9sv0Rmj3S8NL4UNnw/DAzQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ymh19a79q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Thu, 13 Jun 2024 18:55:22 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 45DHRXCV020152 for <binutils@sourceware.org>; Thu, 13 Jun 2024 18:55:21 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2040.outbound.protection.outlook.com [104.47.55.40]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ync91khvn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Thu, 13 Jun 2024 18:55:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K4plHEq3+5vyphdMsM1Lg8qSAojsLZPmTmJVFuKKlmWbyXMPmzSaK5UMYpRoDn08BB3NsbxC/rO/6N59/nVkC/gTFF+TeVpfsueLJmvk8PVbxr4KTItvqvyu3KS8m0DkAqGuKHJilKqV5YHnW8af2NgpE7xbuyO935eL2f0tMvxD2Pl8CIlHoYRVfBYP3iHjS0B65FL9SdzeffqGsEfamS8Mr6Bhhhf2zFou5NiRH2Ihm6Qkh0dUMUrto5F2fOmT3drqYVJI4SUuEOJFQx53QuI0vs5hZGW7AZeigVala3H1Lx6M+A20nTGPWADy6TBM9j8EILjvUhq6Lpp/u+wv1w== 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=tM9nrdrUTGifEQUR1RU4L4dF+AgKT8isjV0y5EaPLOQ=; b=kNOdW87bUm1RNnquTzP7s0JOB1ghmCE4xJqgYyod+Hxiuf1thm2vLPBDGCZyPPfQHdJuKbyjE9y3R3jRhrwdqSWULi+dtRLOTTlBR/yNMff8M8nnM/nBJld3FLWCEtSc6Q4T8nKkF4Ou/d393K68IehsTk0QQmuViMydIKf+2QHh8NFwUwUl6NO8Q/+xVGJTfo+DTyBGC1xTsRimc+N2pAHDWaQBDRaWIwW4BZXvPsnYcOhm7gymz5VEgUXZZIGVVstKOQEWOEkRihcNmiKL2CCq1VE5SwgYEXJdPab+xNpUuwTNfB+2XaV9zrMbP0EIcofN/Q0fmg9ILGDwAh5Y7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tM9nrdrUTGifEQUR1RU4L4dF+AgKT8isjV0y5EaPLOQ=; b=TtGvx+evKFxvsKFCN7ipLbjW+9vaDMIxv9J0pa14bUq1FGP3wE+0h183TjqLJaxCiE2ey+l2mNMeZNrQN8vrXqYIq5yp1VO+jKFByCGyX+nwnyz2BO/0vOKAW5NJYSCPOnS4qSrobHN7GfWw6JbAhycw1/aMOgLVrTl3YvND35E= Received: from MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) by CH0PR10MB5116.namprd10.prod.outlook.com (2603:10b6:610:d9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.21; Thu, 13 Jun 2024 18:55:19 +0000 Received: from MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df]) by MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df%6]) with mapi id 15.20.7677.024; Thu, 13 Jun 2024 18:55:19 +0000 From: Nick Alcock <nick.alcock@oracle.com> To: binutils@sourceware.org Cc: stephen.brennan@oracle.com Subject: [PATCH 09/11] libctf: make the ctf_next ctn_fp non-const Date: Thu, 13 Jun 2024 19:54:28 +0100 Message-ID: <20240613185430.85352-10-nick.alcock@oracle.com> X-Mailer: git-send-email 2.45.1.275.g567cb0950c In-Reply-To: <20240613185430.85352-1-nick.alcock@oracle.com> References: <20240613185430.85352-1-nick.alcock@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0105.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:191::20) To MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6608:EE_|CH0PR10MB5116:EE_ X-MS-Office365-Filtering-Correlation-Id: 7058de22-c141-405b-dfc6-08dc8bda5f3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230035|376009|1800799019|366011; X-Microsoft-Antispam-Message-Info: MwaaXYJgpaa0TOyDJJUf7gkvtArQBF0z/bDoe6nL2HQAOvoc4ZnDFXT8mL9/whV4le0wlfd4tpYqumtWVVvUdOdAPENlIMcVjmx6g9DKtBzFR4o3MuqAhpH9uysu39OrgcLLRuz6O4C1zz71r9pluaFG+8sMxtk4zecPV26URLcLjIIz1GoT6xX0mjNv/65NqiR/E5vKfo1MYsWfZfcPuLpvY9AzD5fuKhcasE7Fjjhqjv6rr3UOEI7SBMcs0BWLRo5m8RXqyNEsbBVZ5EKGqkOs1C8ma3IWTL2F+h24DtBO1AuejNdvRFt/pLeYefGNbrw+4BtjTsGZ2v+8MUhnOtp4WhrpKEt9sa+SssWNXX6cc+xOBtVKgeVUARlPra+HkGT4XNr2PRX+thda7Nv8l4nIOYsiDC3rlo3fsHI9GjZe7kPP9fyBnRseV9HfePAxyXZpizWuFJcg6wPatC/O37/Y7pwtLY+dN0r7yHTveuSY++YmMiiUfrZ+TBLoOGND/PfupPvFxZAsNlOyCzGb9R4GF9bC60tvCE/FCIogKHNz+6+HewzfKVrbBRsNlke+arE6GYExtyMeWXvNObAUuULA0hP+1p1CTCihW9u2b26aHQaRy+NguJnsxwJQltmrCjHT1FHzJ33ZU06OWoGdjYEqxkoG9N5R7uvFMN30E17myiytv8xY7sh6H0oBtcDiHy8ifXzeXAZ6anZZSm7E90C/s+IJ+swhDXugCh0MKg/M1oyKa9tycz5D6zkQ7jCuxqWrScvwuFexatXkgPVkAVTuIhzpfhSNjIRlaFa5Ngah8aukfGVEr0nxpBs0zODXFhM1FACsIKuBtt6aFdMVX6XpOYM6HmeIgFi5NGvFTnCVC9PGwKygk9ZY+D5CiWoyBcg8nI56z5V0/5m3GyzBN2Qn9mGwbbiQEMBMbPYR/+EE/iIHYAi6F0lBBZYY2a4hw6XfyezUvBVwdoVcC118oJrO3WWw1rFQLFD2a8pZRsDpQT6HP2TVuOoiYu10Cu0DkNafm6juYz0ZEetF6pWyUlrdYZ5ycwDqgwlyV9sUqT3cGIailVkCor4SPQnY7JK64uWtK4dO+mucOAHlsjHuI84biuBNpWRdn0tSBLH5CUJTfQ0zRYX2cTKz5qfdVPahq1BDtmkNV2q0JPCWJjPs7qqFbY11+d5lW2LAEfqo0vzCII8xsEPWK7KeTBnEVpuVRXIphT+06PYGonGy365gSsEa9GUts4NTzwc5LnDpf1wk+vkEmitgERF2mnPPWewb0wBss8jLqoirVH/JfSGWjmg7NJCdFGWSQlY5gVtb9iddb3HWZwXWsoo01CIWTh+7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR10MB6608.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230035)(376009)(1800799019)(366011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IQHRTSgrFcR5yUPFKOwQ/TTlLdaGtNgAC7yF4+j0jIK3NcQnDJmIz6CR7o+gNHPjviH7SGFYqk7reaPRbx55olYvbGS6SYkzuH2wZQ5AQGe3OzEcjWEZ3s9PO+vLJLxKDt/uQELkmr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9IEGw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7058de22-c141-405b-dfc6-08dc8bda5f3a X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6608.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 18:55:19.7217 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1S98nQsT2UotpUn6yDttnCuSumL/vtFQr+ZldT8pUhzkM+YjOZN0KW48soSGlJCcfLX3wftSfRJH4AZCIfifWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5116 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-13_11,2024-06-13_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406130134 X-Proofpoint-GUID: o4hyzlKmvhuEqfB14XWA3_ONVIfTGQ0K X-Proofpoint-ORIG-GUID: o4hyzlKmvhuEqfB14XWA3_ONVIfTGQ0K X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org |
Series |
enumerator query API, plus some bugfixes
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Test passed |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Test passed |
Commit Message
Nick Alcock
June 13, 2024, 6:54 p.m. UTC
This was always an error, because the ctn_fp routinely has errors set on it, which is not something you can (or should) do to a const object. libctf/ * ctf-impl.h (ctf_next_) <cu.ctn_fp>: Make non-const. --- libctf/ctf-impl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index ec0b4feb328..299d981a718 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -560,11 +560,13 @@ struct ctf_next void **ctn_hash_slot; } u; - /* This union is of various sorts of dict we can iterate over: - currently dictionaries and archives, dynhashes, and dynsets. */ + /* This union is of various sorts of dict we can iterate over: currently + archives, dictionaries, dynhashes, and dynsets. ctn_fp is non-const + because we need to set errors on it. */ + union { - const ctf_dict_t *ctn_fp; + ctf_dict_t *ctn_fp; const ctf_archive_t *ctn_arc; const ctf_dynhash_t *ctn_h; const ctf_dynset_t *ctn_s;