From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6+g+EupZr2gVsQ0AWB0awg (envelope-from ) for ; Wed, 27 Aug 2025 15:18:02 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=FiIF1CNq; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2BBC81E04C; Wed, 27 Aug 2025 15:18:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED 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 49E0D1E023 for ; Wed, 27 Aug 2025 15:18:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BE68B3839E0C for ; Wed, 27 Aug 2025 19:18:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE68B3839E0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1756322280; bh=8+5C82v5AcUnZ4mZaHrD5G1Q5QxlpkkHvufk2b/dHU8=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=FiIF1CNq9Bi36q/2fsNSR45s6nENy/MpwSO9HZi5slEMZZoa6byYej3Ht1RZhcFGo rEIJVFDpwGX/5SXb8xzrtG0LU5dBVgX3hw4xpe5uVdQZGphCW/sM3bYmgtARaJQ0ol hRisju3Jvvb41GRSEAgKvrApZ5db9VkpIBqxC7q0= Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id D38893858D21 for ; Wed, 27 Aug 2025 19:16:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D38893858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D38893858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756322215; cv=none; b=O/gFYhDEcST26upzPd5thaBlORuQU+Y3op3IqUWsN2/sW3Nwl8JEAvQn6TefEtFDBI/6snnzCU4gRo8nlrCsogDT3uMdgOEluBrELvpifudFEt5ees08wYgs3ayhoIwkp2TcoQQasV/ZzCf28NAKb4ZweIKecgXZQFOlPgwOudg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756322215; c=relaxed/simple; bh=u0QfYGjQq494At54x1WlXP8Felpy+7iV+Rpz3ccQxZM=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ksnZpKXk3/Lq8t5emKY9LAqKuNXtoh1YVufeWTINQ3cPLB/BCwkbIJxzxdSZFVRNngKu9iW/ti4zDBy/kXSNu/S5TEsHr0ioseUN+N7TtfLDiK1ZS+zZvVNc71hQ9KJylj6ZdTrwjXqxjFGqeCpH2iym+6ZlIl7StHwViK4A1sU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D38893858D21 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57RGo2Rm008283 for ; Wed, 27 Aug 2025 19:16:54 GMT Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48sh8aky52-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 27 Aug 2025 19:16:53 +0000 (GMT) Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-71fece075d7so1817427b3.3 for ; Wed, 27 Aug 2025 12:16:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756322213; x=1756927013; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u0QfYGjQq494At54x1WlXP8Felpy+7iV+Rpz3ccQxZM=; b=bdDhrqyGJOYU0kwtvmHDKoXdMpo/2z0vSQXJpQO5/3D1SW8ETIWhXzE7RhHYQ60LOT PLO28QNqlWHu6aamg35O1mJcIJ90gJP363Yx3TkKARSUJdtZNihqSCUlXo0P5RM6zmS9 4GwOr602I7rP16xkm34c7R+QqiCOGLmoUPJEpAnDpAuZktmZ1F2c1Gz3usIHllBYUmSB pxzN2hTTzZBREkvDShhY+qj2bvwI3WBROIm6F7eNEcx+CL4aKCtZrt7Kfinw2XUm2Fec C2bzuelJOTrDRytOwM4hWvf/VAyslbiTCJ8Ybm5P0eSpKYawOffZynck1wTCaIlaOYOB hrXw== X-Gm-Message-State: AOJu0YyQ6F83oc/Tn4zoyLwESca8pwByoVgHNLgO8vpUhKihcgLxrjvC P92EkrDdadp7PWfkwMTy/EQSRffumitbhEihpURvGbcrScOJLag0L3UMkJaXrBrCm0ZfrFFmiun TQnoMek6ZGunGcqO1tO9MSDcqId2GiHT+ndFB1yde4mDv3qsaD2OpdcvA/kSGweisd5iFYrqetf mXYK0tesh13LEVTKSNBgayOQdN4Cuz X-Gm-Gg: ASbGncvNkIdZwx23bSrBgEQo8KfII9+9OKJLD6hU9oQ6v6FsjtQ7kkTvfywJ0UvMObD 1TT0ilKwU6/mO73WTDmC+M77Hx4SL5l7jbTWwWCtQVyx0OMe3nhDvBfVIZYGIJi7vzbTYFiRplt XCAqSlqC/sDnxQ70/h3X3w5RQ= X-Received: by 2002:a05:690c:6608:b0:721:40df:7383 with SMTP id 00721157ae682-72140df79a7mr57907277b3.41.1756322212414; Wed, 27 Aug 2025 12:16:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJt8EU3IQHARHKSw0E7O+SfajqTsbqgJUnp9PetFbQz1qYvSexc7hjNR2rZd+dSlirL8OjAj+jtYLtc1oXVak= X-Received: by 2002:a05:690c:6608:b0:721:40df:7383 with SMTP id 00721157ae682-72140df79a7mr57905887b3.41.1756322210989; Wed, 27 Aug 2025 12:16:50 -0700 (PDT) MIME-Version: 1.0 References: <5e06c858-a390-4960-8aa0-dd8343708716@gmail.com> <21e45c38-4240-4238-abcf-027ca05a36a1@gmail.com> In-Reply-To: <21e45c38-4240-4238-abcf-027ca05a36a1@gmail.com> Date: Wed, 27 Aug 2025 15:16:40 -0400 X-Gm-Features: Ac12FXwHn6ebLI1vQV_Vaq8ZJnriYw52HCDOBBFwra4qsNFM9Rk_d0LeKFRX7OQ Message-ID: Subject: Re: Question Regarding Int Cast Error in GDB Python To: Luis Cc: gdb@sourceware.org X-Authority-Analysis: v=2.4 cv=cLDgskeN c=1 sm=1 tr=0 ts=68af59a5 cx=c_pps a=0mLRTIufkjop4KoA/9S1MA==:117 a=2OwXVqhp2XgA:10 a=NEAV23lmAAAA:8 a=mDV3o1hIAAAA:8 a=pGLkceISAAAA:8 a=rWodfbGtT68UnUYvzR8A:9 a=QEXdDO2ut3YA:10 a=ZfI3aMGenwcA:10 a=4tLNNFkqMtW9EeirKbkA:9 a=B5OuARrZ7qnvgwts:21 a=lqcHg5cX4UMA:10 a=WgItmB6HBUc_1uVUp3mg:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODI2MDE1MyBTYWx0ZWRfXxvZAxmldlc3X c/uOyvhAsa8kjFR0m8jdIeaswGtgn9Go2QXyxYMnEny811LT5mwqNwri2ie9HOKHzssIb2udCIh jIiUMKI8QVjZBrSNCyc+XJPxTikYYa5c96Gf2gKpKyuCBKqiwBLgRW5FN1i7nxAN3OKIYtO0iA4 9+Tjp8vsNw69fgF8O1ftVx+2iwv0eDmF2tpaXg37fyD5yRQWgVx2UBx3NOAO99d6Z38tnK5KdlI SALAkY9haUoonc26p/zLB88VXt8GNSfCfXASItjvX6K8sCEHw0l8Dtsm+qntUJXSxUQRFkxjXUn OOrHgZQaKvBTCZYBBTUf2g5g7jikZvL1OeCgC+d3tQmSc1ydS5XikBUweRqjFlYZe23evtTqit1 EQVGw/ft X-Proofpoint-GUID: yFAEwci2uAiiKEKi3WQW1TGwYQomgVt9 X-Proofpoint-ORIG-GUID: yFAEwci2uAiiKEKi3WQW1TGwYQomgVt9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-27_04,2025-08-26_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 malwarescore=0 spamscore=0 adultscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508260153 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vacha Bhavsar via Gdb Reply-To: Vacha Bhavsar Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi, We chose this particular cast just to stay aligned with the existing method of testing in QEMU which also uses this cast but for 64bit integers. qemu/tests/tcg/aarch64/gdbstub/test-sve.py at b86307ecef9222c335ebd0ed4da2b243e86f779e =C2=B7 qemu/qemu https://lists.gnu.org/archive/html/qemu-devel/2025-08/msg01815.html However, since we have seen that this issue only occurs with the specific indiciated version of gdb, and does not fail for example with gdb16.3, we have implemented a workaround to avoid the casting in the case of gdb-multiarch 15.0.50.20240403-0ubuntu1. Thank you for confirming this is a known issue! Thanks, Vacha On Tue, Aug 26, 2025 at 4:49=E2=80=AFPM Luis = wrote: > Hi, > > On 8/25/25 14:29, Vacha Bhavsar wrote: > > Hi, > > > > Apologies, it seems I pasted the wrong snippet in the original email. > > The code in my reply just prior to this is the correct code. The snippe= t > > that > > should have been included in the first email, which causes the error, i= s > > the one below: > > > > v =3D gdb.parse_and_eval(reg) > > report(str(v.type) =3D=3D "uint128_t", "size of %s" % (reg)) > > Right, so gdb doesn't like casting integers to/from 8+ bytes. That's a > limitation currently. But why are you considering this particular cast? > To optimize the checks instead of using the byte vectors? >