From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id PS2xAJ0A62o2NRgAWB0awg (envelope-from ) for ; Wed, 04 Nov 2026 04:53:33 -0500 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=hMPyq95E; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E6EDD378002; Wed, 04 Nov 2026 04:53:32 -0500 (EST) 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 [IPv6:2620:52:6:3111::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 DEAD71E052 for ; Wed, 04 Nov 2026 04:53:30 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A13024BA23CF for ; Wed, 4 Nov 2026 09:53:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A13024BA23CF 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=hMPyq95E Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by sourceware.org (Postfix) with ESMTPS id 39AFE4BA23C9 for ; Wed, 4 Nov 2026 09:53:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 39AFE4BA23C9 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 39AFE4BA23C9 Authentication-Results: sourceware.org; arc=fail smtp.remote-ip=192.198.163.10 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1793785980; cv=fail; b=ZicJaZUs4r6CD2/RQMugqcihKet3LemSPSMJqeJW0vqICsXfZlAMmMe5FPnn07LTqY/MVeQJIe2ULIu4w9q5JCUPFw8n4VKYQSc3xnCe6U9LDtnohFgZf9BpKsCBKdXY0bjhg3lZR8RCvZqaDYz1nECkrHSZ1JKY4slJyZxNV84= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1793785980; c=relaxed/simple; bh=Ep9hlopUM6vrQPEE2yvg3ZpzfWNgQ3zZpdP0uWtwKxI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WHoZvCtFcqkDy9LtKL81TkpPOiVnHq3s8ephD426QoSPugktHilEbnPmGS/jGkRelmVnlDqavEDpFKmY1tdaFoelsEYQ9BxDECyUC60glUy/Eh3l/j/LCLZOXpYcPb8q4l5gs3EIMmPfKPHj1VDI5VQssfyFRKCYHFLM6MXnqn4= 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=hMPyq95E DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39AFE4BA23C9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793785981; x=1825321981; h=from:to:cc:subject:date:message-id:mime-version; bh=Ep9hlopUM6vrQPEE2yvg3ZpzfWNgQ3zZpdP0uWtwKxI=; b=hMPyq95EYItgorDke1razLFrA4idx5+0qgpmg7uvj/njJW3QcnUdGCHP 7XknySjW3P3/Wz6ilGX7NaW8C0nf9M9hDYy3jN4pQAtqIZWxPMyb+xEIF bHSlJr+aDd6afvIvzPHP1ff4luw52ruDrCx2H+1XXnREP3KSrh6sPB1rG Xh2QdKARXTiJdNBgcbzuhlJbPdndhFqJsbMdLSvbpHGp6pxUNpc1AXXZ0 knXIBihBIvWKmipDZrMTdsNMekrwuvTB+HJ1jXFDRmOC2IzJRdTgav2Zv Gxdx6ZQ0EkOCJSloLYrzYnvyRz+1XNULzz8kAlBWnsexvcsJKDYyqYnSC w==; X-CSE-ConnectionGUID: 5XPtTflrSXqlLfLBnjgXWw== X-CSE-MsgGUID: 3YeVWbP6RC20KIn3OcbzLQ== X-IronPort-AV: E=McAfee;i="6800,10657,11955"; a="2433512" X-IronPort-AV: E=Sophos;i="6.27,195,1787036400"; d="scan'208,217";a="2433512" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2026 01:52:58 -0800 X-CSE-ConnectionGUID: zFoKMX2jTpWpC9jjtwu+og== X-CSE-MsgGUID: CShvRf3AQJaIO2jE67ULVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,195,1787036400"; d="scan'208,217";a="7230526" Received: from orsmsx902.amr.corp.intel.com ([10.22.229.24]) by fmviesa010.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Nov 2026 01:52:57 -0800 Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) 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.2562.56; Wed, 4 Nov 2026 01:52:56 -0800 Received: from ORSEDG902.ED.cps.intel.com (10.7.248.12) 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.56 via Frontend Transport; Wed, 4 Nov 2026 01:52:56 -0800 Received: from CY3PR05CU001.outbound.protection.outlook.com (40.93.201.33) by edgegateway.intel.com (134.134.137.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Wed, 4 Nov 2026 01:52:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dXwqj41Opw7N8FgVioGwrPaG/WWRotop0zFkxU3OYj909p3N0i76oUnWLV3oGtEpTpKNRRG6alVi+Q9JEAOo9OzsOYVxjjNexf0QrgcuHNepsru0OZeJm0LzQLnSeW/0qqW0zBuOB4G2I4bMCIji/SrRuTpvtNzBbbVvxpXIXYintfEkXNeJZL2U0O4RzjrCejJN/wh51r3/9lsrEJyBVf/3YUtQf3vKfId+RDsXSsnBNX+EAsaKvG5udet6un/lHZC4d986mOoZxHAxeVKNwsFJ2z3fDSAMzo5FhqjnAiXABrOOnQ6qThhTrLk5a0f6PYZ3HWjwKfWeROlvWeIbeA== 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=WC60YDTk4odRSoeNlBpedGI8A1anyu8Lw6Jo4sy0kjU=; b=r61ARvVJ7o2rwwyuhxL1j2RleFKkxyz2DrYcdqan9En/T+wlyLu+0IYQJ4kgns9386zSkhgaL7ViMJO/lVrjcSO4rkZMbAcU+FpZf6Xgat/L7Ut3pbb0G01hu1n6TbxhPi/2ohsvrB9BHNqtoCplxFAqpnAz/29IBaWwm9ki0nrlZstEdJGlCvU3TTDaDD2DwyYyrCeTud+N+6iEqkHRSWW6w/ACkwz/Vkpj0J3BD2j2VF6i4mA7d+BQ8UKqmOWmXpM7wP6vJ6gjfaAOqBfSu+nw1rdbM7mknDquQy9mbjlBOvu8IDvPyabAcV9kjU2gtEFB+UIMUnmuJ4x93hS2Ow== 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 IA3PR11MB546668.namprd11.prod.outlook.com (2603:10b6:208:620::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.9; Wed, 4 Nov 2026 09:52:54 +0000 Received: from SA1PR11MB6968.namprd11.prod.outlook.com ([fe80::ab18:2ee7:3448:d71a]) by SA1PR11MB6968.namprd11.prod.outlook.com ([fe80::ab18:2ee7:3448:d71a%6]) with mapi id 15.21.0592.009; Wed, 4 Nov 2026 09:52:54 +0000 From: "Bouhaouel, Mohamed" To: "Bouhaouel, Mohamed" , "gdb-patches@sourceware.org" CC: "Ijaz, Abdul B" , "Bouhaouel, Mohamed" Subject: [PING 3][PATCH 1/1] gdb, infcall, breakpoint: Handle cycles in conditional expr evaluation Thread-Topic: [PING 3][PATCH 1/1] gdb, infcall, breakpoint: Handle cycles in conditional expr evaluation Thread-Index: AQHdbEI5pDzWRI9Uz0+B3s3soiR0rg== Date: Wed, 4 Nov 2026 09:52:54 +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_|IA3PR11MB546668:EE_ x-ms-office365-filtering-correlation-id: 71ac7679-cfca-4a20-0833-08df3a5965e2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|23010399003|376014|1800799024|366016|6133799003|10067099003|18002099003|8096899003|38070700021|56012099006|11063799006|261022075727099003|261102123227099003|261026140227099003|261022105027099003|261026121527099003|261028144727099003|261021121427099003|261009223027099003; x-microsoft-antispam-message-info: DcS/FY7ot3X7PBrjP4wgyZPe4DMKjdxTIw4yQ2Xd3f+/kPipWBlFM7rBUSU9AtDGzkyluyrB5xRvG7rGjfGQG8b9rz7e8pTtauCetVNW2fCnzsGrwgXGQv6ynMtOL8iQ/lUveVPKK1DmgRaMXsLnjBv4sD8EcL47F1KpedToklmAL2QOroyMG4ryMPfchYnJr7QARz4u4SzAYbkgnIorpEjtPl8vS4Ak5nQc+/VKj76ZArGfUA4v8WviDHDionSzNxsyXYn7MUw86WTcodcoh6lRLYnEUJEt3AOvV0JqZsc3LY6pYLN6UXfbqiU24Lf/XMpdQAWgS3q1iVwsT8+xQei3E2tPNy3YRF2MZCM9TXUehIck+OGZOtCvTjPow1BxECKwzN+1ZlAEKNXZ1ykpnCpjaWi7V41bdincTp1K4lTlySFXtdxtfUHEePPS63Gx8W5C8npHGu5hTobJq4b6k7UkayBi/wSZSOYcP/HDKK3vSOps+YZfUVpRZmq7+PDGFjg8s4phxCcJfwrf/ZJTn0kW6z6jeHquivA7pImbQxiYIgsqsvzCh0i+Zzi6EZT+4HIEmm77RlC6Shqju7enq7d11Z6hG8wocpp8FlXktKiPffLIvKtSvvwRqWOfzxOrPY2ZE3d2D0LleQchUPkbWms5wb7QE7bG48dnMW4EBVm/4TXC5Iv0uBiwr0/0HwEZDPQLVFTSs5iKQ8T4SnI1WsRxIxFbw6BubhjN2O//ZwI= 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)(376014)(1800799024)(366016)(6133799003)(10067099003)(18002099003)(8096899003)(38070700021)(56012099006)(11063799006)(261022075727099003)(261102123227099003)(261026140227099003)(261022105027099003)(261026121527099003)(261028144727099003)(261021121427099003)(261009223027099003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?eevsfUZmB2TGcAFGOryERAF0sIKVuq/oIMEUPpZQdkUOWh/n3ulCVZwqao?= =?iso-8859-1?Q?Z/tRwoKE4jOitvRXuYoLz21118/ke6maoRpI1E65fVtcpFzWbqyzXcXzld?= =?iso-8859-1?Q?iVmcB748jfPD+yM3Zoa2WOwU4C+b6TRUohUqb/uHasQDVoLCnLKPdr2peE?= =?iso-8859-1?Q?JwqTcKFk8QbFQpNAEkX7PqWnaodSHbOjI4MhK6bHQRQx7IMsDJWlRO6QYD?= =?iso-8859-1?Q?yyIwGkGrUP1haxsc6S1kw1Dzf/e3F+C+UNF+BLg2MZBSMhC9a/ceIx09ts?= =?iso-8859-1?Q?JalkRPbOi0G2iYvCpDoPYM2G8KHaIShVCEG3zHxkuvtdncExrbTBDcr/dC?= =?iso-8859-1?Q?aQNTA7U43wfcKKEYP+IJBT/XitjN3bDOlqK8CTeXEudA7mx03RjklmySq2?= =?iso-8859-1?Q?YZ3M5kuOzJbsbCztB3Bu4mv7xzU0Ay01mod6nL59pJ2PiIHAovZ63IsxpF?= =?iso-8859-1?Q?znaE/NabjYxTWrbSkUl7bhdjJFqEgCQxG3mueSj/AgYqkN/7kcxsz2C1Wr?= =?iso-8859-1?Q?nMDuFzKFuCHBB39Bd9GXpLz69jo1FGWuPxzbQHdqNP4vJnIrQB9LNiMPcO?= =?iso-8859-1?Q?v304g868oUWaZOiiMuY2qIqU11HW9VSUGA3uyhUz2hnOyOpuuSrP4PianL?= =?iso-8859-1?Q?gW+XL6A2jSpgZcrBDA1MtfpgeYg6NALfztMIxksSbAzbcwpe6EX0O6Oui4?= =?iso-8859-1?Q?nZMZAi42t4a3cohhF9j+I9sUaUJo8LNIiZB6WLIWCX3cKEmTYafsGxw+cb?= =?iso-8859-1?Q?auqOjhn+c5F4mMqNHNlgSiRwtb9gP+jRWTBcc5KhUBXLXtEnNBiuL3CAzG?= =?iso-8859-1?Q?W2DiNQ47UKnQEeROavuO9s8OmQNscggbG1mZ7zC+DRCpCU0Q6hiv9PaXm9?= =?iso-8859-1?Q?BZM6vzunNJjUEkgFC+PeZ7yoYRsyH+eIPyrJ8AWgbRU0uM7xYasEPlliof?= =?iso-8859-1?Q?ur2CK3AvKQBPyqm663Cx4M2b+gcHfuPU++xMWOuoJ0zzYQb8oe9LTtIJcf?= =?iso-8859-1?Q?JX206VN+Bwdi5s/CZkEXq6c+xpLUy7aFxqeRDlpeWwk7oT14EIxdQvNoPC?= =?iso-8859-1?Q?ghc4lrUDp7/THf+TPvjHKVr4+uYX3RMBnbNi6VVON0K/XVsferxT83I3u3?= =?iso-8859-1?Q?WvI5JzxzHLMF54aCmxxMes2TZ6YHuhz9y7a+j1yyU5CbFQMy/iooJfgvAj?= =?iso-8859-1?Q?+zFKR9ZYLug8Of/HGkfFBmmFG9P2G7KYEjqFCxLQhfHAwjn++mS64/trFI?= =?iso-8859-1?Q?zbUgICLQQlF4iavaLOqNQ/z0J4kqQI+JF9TEy3Fe3XuAZaw5QHPIllv8AG?= =?iso-8859-1?Q?MUgB1uHGCt5pOc4q51v+PeV2GhM64WdDfJBx6Z16xOK/Ocz04Kiw75Ce1m?= =?iso-8859-1?Q?/0ZuEkspF0OfZB+VHaCqB54VHLcSEXbhmTaw4a2WN9aBTV664L9x6N5ZSi?= =?iso-8859-1?Q?/URBNB5kxlKuCQOKni4aJg/Y3I5jG/FyDm2KF3VQ0sFDqNWknTLzEdPmVX?= =?iso-8859-1?Q?R9KLjjZAVX8o6lA+ixvBRVehoHUDbB0ECJBrThXCkRViUsSQNc6lhVOCQ6?= =?iso-8859-1?Q?rEdbx/Q+smDQkHD0X45sGkrmgPnA0CvVVSm0GaNITpYz50RdGSYexYHcvn?= =?iso-8859-1?Q?H4QtE+ao9aKUV7UrjtY1w9aYgKgqE765ba6Ea2ZdVBk1mXEhby9d9B6l2G?= =?iso-8859-1?Q?KQ7eEWIvUL5i8HMi+I3AgCtpB/i2E1TTcc6Ph7AE/DgDzGBKfoRt1Z3+NM?= =?iso-8859-1?Q?XFo3nxCDZKKDjjy6jPx54lauClQpt9lcMt+5RjQzrTGezCEim0ym3FnR5K?= =?iso-8859-1?Q?ezByia3XuQ=3D=3D?= Content-Type: multipart/alternative; boundary="_000_SA1PR11MB696831E1F36B4124E733FBD5E4682SA1PR11MB6968namp_" MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: JYxoLplm4doRZsJW8WnA1ga6aP75ibwoXgEBo1HXFrP/yG8HsmqH+uyX893NwwgOazggEXHHChCZD+3dMO/OCGAfI3vq/ea0ekb5LhLh7INZ/yheMZqPwfNh2j8yaI741qQOk1dBlS3nDI5ayoxM5rPeKFuW4pcxbKZwSjM/esiQswR4WQCVmc/sdBmXearVXpg65LxKFMThWyZFGJm4sWe6UHIgXgmGKlymw6wTuylofNT2RZWGznckn1jMQqCh8cqsZ9YpBG7jlHXzC7MeZImY7t7P3Xe6sCw3oQWFya6buLvwwLfrV+mLWvAF1ukTH2Rq0LyubDN7VRdUdxnf3w== X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB6968.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71ac7679-cfca-4a20-0833-08df3a5965e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2026 09:52:54.5505 (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: gwAqrNGAgs4wcyIvPkHwz61GVL6vRW47sxrwchdhX5tZqTfy7RsTkSxTD99ncRWQmecHm9xgm28FT6xn4byjvjS1Xd0BzEU4tUhyM7D7yH0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA3PR11MB546668 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_SA1PR11MB696831E1F36B4124E733FBD5E4682SA1PR11MB6968namp_ 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_SA1PR11MB696831E1F36B4124E733FBD5E4682SA1PR11MB6968namp_ 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_SA1PR11MB696831E1F36B4124E733FBD5E4682SA1PR11MB6968namp_--