From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QaK7NHZo4Gp5zi4AWB0awg (envelope-from ) for ; Tue, 27 Oct 2026 05:01:42 -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=B+cN+OPF; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D269F378003; Tue, 27 Oct 2026 05:01:42 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 87B18378002 for ; Tue, 27 Oct 2026 05:01:41 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A461C4BA23EA for ; Tue, 27 Oct 2026 09:01:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A461C4BA23EA 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=B+cN+OPF Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by sourceware.org (Postfix) with ESMTPS id 6FF4B4BA23E3 for ; Tue, 27 Oct 2026 09:01:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6FF4B4BA23E3 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 6FF4B4BA23E3 Authentication-Results: sourceware.org; arc=fail smtp.remote-ip=192.198.163.8 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1793091663; cv=fail; b=WfJsLx7IaEaB2uDlqSgc1LbLM6dbt/FnCmid+3VvS3NTzIQKWxyByTxvZn3sJu6i1NqQhkHMgK3eTksYahPKxn6wwECW/VcYxyDL/5VkPN7MYpmydtFjNGtjrQgsM4MXrAUrXz6+mPWOtFkV77/WM6gkxV6/4uuZcOsmU53Ulxw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1793091663; c=relaxed/simple; bh=i9wha9XhgvtIjw39PTabWm/0OVjEKFkRoiZsEkAVAFQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QiE9hs4aONCvzGJgGBjxNh4Ov3cScVuOpFzz4DlWHCXvCViVbxJJ1mu9m6skad23iDXh8SrIF54Xj1EI7WzBnbetuXNPk9Z1dkCFPV3qOr3GgaTiR1vPc4Hb4zuptit7XvsUikxe5yhaxfiRTGxv/xB8D19ZvwkSqDT7/YXV/xc= ARC-Authentication-Results: i=2; 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=B+cN+OPF DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FF4B4BA23E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793091664; x=1824627664; h=from:to:subject:date:message-id:mime-version; bh=i9wha9XhgvtIjw39PTabWm/0OVjEKFkRoiZsEkAVAFQ=; b=B+cN+OPFa9uWnp9UKKc9FJJdEc1vJATGJfAJo7K6YPGMdJOFCa2RWQVy DR7BFtdwYLr5i7iRfiPu6NsVUd27MuALnuHMylTqYKIu2m8C3OGj2rRRI 4MptpGotXNGYIbSTlNMKZ5+xIcl39UQw7oIrcJ5Z5MGAVAL+gY2Bdqtq0 kiZTfm9R4WmZzx0Al2rM091uvHMliV9wz8cce7Bo+dukSQXl/a6QuNVn+ N5YafoiMLXhw/ilt0ZfrJqZMVHgnURX89eXZMw+HCjU8gfK47rGDwhCFF WNBzKPtnatEmYwIwaSSNzUqRzLpNaiBrlQZJ8MEstwPjof6APfMs9xI5N w==; X-CSE-ConnectionGUID: RgSejQS6QbuYEFi9l2/xPw== X-CSE-MsgGUID: 6N5t9E34SJ2PxnG0ozplUw== X-IronPort-AV: E=McAfee;i="6800,10657,11947"; a="1682561" X-IronPort-AV: E=Sophos;i="6.27,180,1787036400"; d="scan'208,217";a="1682561" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2026 02:00:55 -0700 X-CSE-ConnectionGUID: CvG4jQQiRg+A4mRt39R9KQ== X-CSE-MsgGUID: 4kWsYh26SWOukiMA57bWuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,180,1787036400"; d="scan'208,217";a="4894167" Received: from orsmsx901.amr.corp.intel.com ([10.22.229.23]) by fmviesa006.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2026 02:00:54 -0700 Received: from ORSMSX903.amr.corp.intel.com (10.22.229.25) by ORSMSX901.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Tue, 27 Oct 2026 02:00:40 -0700 Received: from ORSEDG901.ED.cps.intel.com (10.7.248.11) by ORSMSX903.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49 via Frontend Transport; Tue, 27 Oct 2026 02:00:40 -0700 Received: from SN4PR2101CU001.outbound.protection.outlook.com (40.93.195.24) by edgegateway.intel.com (134.134.137.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Tue, 27 Oct 2026 02:00:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nQY7u+Jkoo6iGKBXYupyiVZJczBRwpLiay8hvZrPeI/I6ClsPtnO/GxvjGIS5TQuiUk5WgXAtiURVXQWjG57HPIRRnQKgdldyO5LVpI5ewi4OZ4Wk3P0ZRDY8sA1Dh+UtcPcY3Rj2PCq7hyiaawYSzpMtpTn/z/155pwPyTzPxjoylGLWSeuhfvVNx9RQy9Sy0fGmPW60OprFBakLDzPcqgOaGpIcrw6kmUfD+GJT+Kugknol6aMh/yG6VvuonirNdIVN51hcmkMYBsB/YfLt1kw/GwASRt7wAYuhsBfg5MlUAMWIKYTtcUjTdYHGSsTJGk7WPKt2YV5r4OBaDzE9Q== 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=M/aAWUGCeHzglIVZOw789jzPgNfZYRsuI2/K426g4cg=; b=F6nwfvqa8UcefCs7ePjUsTnA4Cu1pWCFI+IYmUosC1QUUJ9aGkoBR09Yj7+63FiltufGZqNONFRinniKdXrEvGOYZvEOlNv0GqGQ4J6DkZWOr5ghKsV7Vo17E+eDpj1VI0SAm77kWryBnqmbrWRRRGb2Bk4DgmhjbeZq0kZ3Xsxya3LqSeM10h2VGIuxgK0HrVQDneld1Ya6/LNBULdhPGJ66kQWM9JpB6GW6v8HDdd824y/JpitJ67PMpCIxK9w8/YBcVJgiTrn7STseDSGdoASZcfSR5lyOzXzOyGDtGDk+v3Te0n/mz+p/IXTMnQdw6Gv4GcF51EZ4Pt8xkhwqA== 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 SA1PR11MB6968.namprd11.prod.outlook.com (2603:10b6:806:2be::22) by DS7PR11MB6221.namprd11.prod.outlook.com (2603:10b6:8:9a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.546.22; Tue, 27 Oct 2026 09:00:38 +0000 Received: from SA1PR11MB6968.namprd11.prod.outlook.com ([fe80::ab18:2ee7:3448:d71a]) by SA1PR11MB6968.namprd11.prod.outlook.com ([fe80::ab18:2ee7:3448:d71a%7]) with mapi id 15.21.0546.021; Tue, 27 Oct 2026 09:00:37 +0000 From: "Bouhaouel, Mohamed" To: "gdb-patches@sourceware.org" Subject: [PING 2][PATCH 1/1] gdb, infcall, breakpoint: Handle cycles in conditional expr evaluation Thread-Topic: [PING 2][PATCH 1/1] gdb, infcall, breakpoint: Handle cycles in conditional expr evaluation Thread-Index: AQHdZfGJPcxmLMUSWE6wnTGXugEA3g== Date: Tue, 27 Oct 2026 09:00:37 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR11MB6968:EE_|DS7PR11MB6221:EE_ x-ms-office365-filtering-correlation-id: eaacb836-2414-4d8b-8622-08df3408c4ce x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|23010399003|1800799024|376014|366016|261026121527099003|38070700021|56012099006|261009223027099003|261022105027099003|261022075727099003|261021121427099003|11063799006|18002099003|6133799003|10067099003|8096899003|261026140227099003; x-microsoft-antispam-message-info: dZSECAThXsZxtap4DOCsaQvEuvS+p6gVnJRHGKNF0RncFJkTy/9LtXYaGF9lZ6e6B0KyHo+OGdeeSMtl++LMLByHHn3a6aTc6f78qG8bp0EmSbqAoodIvNEZxeDvJyH6CXd+gGG5oJiUGsCMDW+RPqPMQLRayaooni8IgXFGoWfd/XJVsAsebEicMPhGwGFxFEF+IU90KurXc//I6J6n3+7fj4N7MMMAe27yle2QzexzEWnMBV48EqmOXEjiCc5u2pxRgNLrYlv/pGL6kK2kTsU7d2rU2rZL2MUbFGLZngkngMIYnCdOqj4t4C5BsjDSe5QjQoCS1qHoV3xmwTIENDeomEbkR5VC3l3iAYQD/QmTv9+sospQu2zGXXloVOfmWXbWsegwqAjWXSfxltGCFvf4z78fI/sLHVi9uE5nEcxS0BLuKJgA/glTYRGpsyIz20nf4utBncJofdXPl5/0obJ9PLfXZfuyaTPbl5Zgx2/bMYqFzseat4zFqU2dOy54ad22DKvn8CGQRnTPrKCAeEHciHst59f2gsMNsfTis8yB0tGvBV2lvJCt+Kx0XCZOkYhevwNei/i8SycXsQYlMdw7C2KEj2cDvoU/k1QTCbmZ6OO99maBWGoUwHo54DkpATB7Z+nj1Y0ryB2tFsw3AtKinybQWH1FsIyXwl2zbFtC1I5uXJ2wGAUsL5/JIkk8y0F1FvPsY6Fgnu20jXo24Ew/H4TWnxqrizNW/av9UU8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA1PR11MB6968.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(1800799024)(376014)(366016)(261026121527099003)(38070700021)(56012099006)(261009223027099003)(261022105027099003)(261022075727099003)(261021121427099003)(11063799006)(18002099003)(6133799003)(10067099003)(8096899003)(261026140227099003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?KWp403u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zjqg+6JcoehephXCAT2bOc19RrNu3sEPT8BA5e25vRl?= =?iso-8859-1?Q?kko8Sb+4LQ=3D=3D?= Content-Type: multipart/alternative; boundary="_000_SA1PR11MB6968393842965F358AEF755DE4602SA1PR11MB6968namp_" MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: vuDUKiANWlRX8VYhZIUsLT49oAPsjGogQSCmGH1sT3J7cLWPjP4WrvlBHsNb6zjGxlC1mMgVmJgYowQC/9Mlq9RHAXil5URrkjk50d5TDrhYjXNJiywU4qMBUBNlBGOTh0QupTEVVtij89XEdNWrfsKWKhVzrYdXenOkOhlQzjhLzfJ6SHyevEePwzM8VAvLI3cL0q/UpKcfmpDPCajtgj45kBw8SWEsQkeh1unHg6noMoB4ESVjTxzJ6A0lOXP6sUzO85UgjVEL/IRu6ajdK81SOVSIPedLqJfJbkiqoTRwh6TzBkF4Q9Y7QwTMEpUELqkVKZzD4M09ZuQxEylWiQ== X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB6968.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eaacb836-2414-4d8b-8622-08df3408c4ce X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2026 09:00:37.6048 (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: k9U8+kKhqIKOoUd0kHFpRULH87Bl705tqbPQV8nWftDW8f+mfnbzlsxcGwy7jxCtsDuqXcozmMUbP5qJoDNmtMLfuKPIV03Nz6NecsLYcyk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6221 X-OriginatorOrg: intel.com 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 --_000_SA1PR11MB6968393842965F358AEF755DE4602SA1PR11MB6968namp_ Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Kindly pinging. Thanks! --Mohamed ________________________________ From: Mohamed Bouhaouel Sent: Friday, October 2, 2026 4:35 PM To: gdb-patches@sourceware.org Cc: abdul.b.ijaz@intel.com; mohamed.bouhaouel@intel.com Subject: Re: [PATCH 1/1] gdb, infcall, breakpoint: Handle cycles in conditi= onal expr evaluation Take the following scenario: (gdb) break foo if foo (1) =3D=3D 2 (gdb) run = The program stops at 'foo', then GDB tries to evaluate the condition. The c= ondition triggers an inferior call of 'foo', which causes a stop at 'foo' a= gain, and GDB is stuck in this infinite cycle. The same issue exists also f= or indirect cycles, e.g., (gdb) break foo if bar (1) (gdb) break bar if foo= (1) (gdb) run To avoid this, check for cycles just before evaluating a bre= akpoint condition. If a breakpoint is hit again while its own condition is = being evaluated, the evaluation of that condition is aborted with an error = message. With the patch, the behavior becomes: (gdb) break foo if foo (1) = =3D=3D 2 Breakpoint 2 at 0x55555555514c: file infcall-from-bp-cond-cycle.c,= line 27. (gdb) continue Continuing. Error in testing condition for breakpo= int 2: Aborting expression evaluation for the conditional bp: A cycle was d= etected during the evaluation. Breakpoint 2, foo (a=3D1) at infcall-from-bp= -cond-cycle.c:27 27 return a + add_one (a); Error in testing condition for = breakpoint 2: The program being debugged stopped while in a function called= from GDB. Evaluation of the expression containing the function (foo) will = be abandoned. When the function is done executing, GDB will silently stop. = (gdb) backtrace #0 foo (a=3D1) at infcall-from-bp-cond-cycle.c:27 #1 ________________________________________ Intel Deutschland GmbH = Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany = Tel: +49 (89) 99143-0 = www.intel.de = Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitar= aman Chairperson of the Supervisory Board: Sonja Pierer Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. --_000_SA1PR11MB6968393842965F358AEF755DE4602SA1PR11MB6968namp_ Content-Type: text/html; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
Kindly pinging.

Thanks!

--Mohame= d

 



From: Mohamed Bouhaouel
Sent: Friday, October 2, 2026 4:35 PM
To: gdb-patches@sourceware.org
Cc: abdul.b.ijaz@intel.com; mohamed.bouhaouel@intel.com
Subject: Re: [PATCH 1/1] gdb, infcall, breakpoint: Handle cycles in = conditional expr evaluation

Take the following scenario: (gdb) break foo if foo (1) =3D=3D 2 (gdb) run = The program stops at 'foo', then GDB tries to evaluate the condition. The c= ondition triggers an inferior call of 'foo', which causes a stop at 'foo' a= gain, and GDB is stuck in this infinite cycle. The same issue exists also for indirect cycles, e.g., (gdb) break f= oo if bar (1) (gdb) break bar if foo (1) (gdb) run To avoid this, check for= cycles just before evaluating a breakpoint condition. If a breakpoint is h= it again while its own condition is being evaluated, the evaluation of that condition is aborted with an er= ror message. With the patch, the behavior becomes: (gdb) break foo if foo (= 1) =3D=3D 2 Breakpoint 2 at 0x55555555514c: file infcall-from-bp-cond-cycle= .c, line 27. (gdb) continue Continuing. Error in testing condition for breakpoint 2: Aborting expression evaluatio= n for the conditional bp: A cycle was detected during the evaluation. Break= point 2, foo (a=3D1) at infcall-from-bp-cond-cycle.c:27 27 return a + add_o= ne (a); Error in testing condition for breakpoint 2: The program being debugged stopped while in a function c= alled from GDB. Evaluation of the expression containing the function (foo) = will be abandoned. When the function is done executing, GDB will silently s= top. (gdb) backtrace #0 foo (a=3D1) at infcall-from-bp-cond-cycle.c:27 #1

____________= ____________________________

Intel Deutsc= hland GmbH

Registered A= ddress: Dornacher Strasse 1, 85622 Feldkirchen, Germany

Tel: +49 (89) 99143-0 =

= www.intel.de

Managing Directors: Candice Moore= , Jeffrey Schneiderman, Ramachandran Sitaraman

Chairperson of the Supervisory Bo= ard: Sonja Pierer

Registered S= eat: Munich Commercial Register B: Amtsgericht Munich HRB 186928

This e-mail and any attachments m= ay contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

--_000_SA1PR11MB6968393842965F358AEF755DE4602SA1PR11MB6968namp_--