From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id sIuWBiKw8mr3WT0AWB0awg (envelope-from ) for ; Tue, 10 Nov 2026 00:48:18 -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=go0cLgUX; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EE2651E043; Tue, 10 Nov 2026 00:48:17 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,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 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 4700D1E043 for ; Tue, 10 Nov 2026 00:48:16 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C21604BA2E28 for ; Tue, 10 Nov 2026 05:48:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C21604BA2E28 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=go0cLgUX Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by sourceware.org (Postfix) with ESMTPS id E215B4BA2E05 for ; Tue, 10 Nov 2026 05:47:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E215B4BA2E05 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 E215B4BA2E05 Authentication-Results: sourceware.org; arc=fail smtp.remote-ip=198.175.65.20 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1794289667; cv=fail; b=I7urvPQ/A/NSWnVR3XWne/qK5QubryqAAGLF7+VUV9d7T49+Ep/3RfU7yThBPlTsE420hrPYLLF1d0KVYMgJga7dOKG2eYtAp6gemMeLOfzeZNaTCttwIVuKRx+TeULTmbHd1YNT8O0m1SjMGXaSHGSk2zJbp62D36j8D4q+xw0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1794289667; c=relaxed/simple; bh=yqFvDjiQAKjYMQc2CkJnPKF1Y7S7dF/pEXIIGV4oJ8U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=EgCN67SrGHAMIHUwNuDonuiET+EDlzNDqy93CXjsTrCooteZfqrtFUiLLtR5aEmvKarRPsVC1320aEYMMQMq4213eau1nGBrB9CctBD8kgPvcOMMk2DU+UjQqe+VKpKMw4LEdXWSEZBvManCLfT0p1jZYrvZ5Y4j5Jcb9dyBIZA= 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=go0cLgUX DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E215B4BA2E05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1794289667; x=1825825667; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version:content-transfer-encoding; bh=yqFvDjiQAKjYMQc2CkJnPKF1Y7S7dF/pEXIIGV4oJ8U=; b=go0cLgUXPD1oUd13NU6nPYRv+4x5g3zzcxmpmRvU6di0sM/6x64pfuZi 5bMHogSWq+8mfiaNaE1TyC5vg/U89sD0Bbh+k++9mucSTqWEHZNZrA2RL XGihivwpalUUgQKaq9FMUdkvXFsNY79ReTZY4r+d/R13exR43ImiR4uFT CreQsAt1pcwGzf/bT9STy+viDfMpyYh648BFQMIOYthQDUirMbONlf1T1 5TNxpC+ZLQKjsQFYa1F2rk8g1HHHMtUvs5PXM51UCMKEl9tmeG0RkiQri T0gC27AslYxLN5Or0syCO4raXwIP9k5MGWV6Tl3SS3puG/MeVk1rRiKLs g==; X-CSE-ConnectionGUID: ijpFYn+4Sa+gAfL0aHK1wQ== X-CSE-MsgGUID: I95C9oinS6q0DmL3qf9Zrw== X-IronPort-AV: E=McAfee;i="6800,10657,11961"; a="3055840" X-IronPort-AV: E=Sophos;i="6.27,205,1787036400"; d="scan'208";a="3055840" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2026 21:47:45 -0800 X-CSE-ConnectionGUID: gMBcTEAPRU6nuZA97xBHRA== X-CSE-MsgGUID: qnt0VzmZSbeSVzFpwH5WfQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,205,1787036400"; d="scan'208";a="8391521" Received: from fmsmsx902.amr.corp.intel.com ([10.18.126.91]) by fmviesa008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2026 21:47:46 -0800 Received: from FMSMSX903.amr.corp.intel.com (10.18.126.92) by fmsmsx902.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Mon, 9 Nov 2026 21:47:45 -0800 Received: from fmsedg902.ED.cps.intel.com (10.1.192.144) by FMSMSX903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56 via Frontend Transport; Mon, 9 Nov 2026 21:47:45 -0800 Received: from PH7PR06CU001.outbound.protection.outlook.com (52.101.201.48) by edgegateway.intel.com (192.55.55.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Mon, 9 Nov 2026 21:47:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BdYjat62b0fUMuy8DuUr8TJ10DQrTQ9h70Cl9Jd20QyyaEcGslzlyiJSiS6deWepEYFCQlxr4zfEmRjpoj+HLYx2yTty3IAx3g9NVyWa1Rp1f5hmpHrO2/dmd0H3gx4kc0HnLNCqPgVfGcqGdpAJENWMIXB052cycfbn2eHssqeLajzULtMpxN6dTzi50a6wBPgaMMY51nfU2ZCeAEZZzvJ1rx59w/UgqL8Ei2h0OzpeUpuQRsixmghTJZrIw1MrfPpawViFPIElyUcNo5FGU+LSIO8Xt/0I0aTUB7ZZG47dBuiDcivn3b1VwagRAwBl85uAsLvBr1G5v9NNncWPaA== 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=ZADdtRxo9A+yYEEnG2QEZr6Oo1bHVAAzfy1zkmpX57s=; b=bjbYSrx0TQt7e0c6rutOyY7t/LfPmoXcM1Fjg8/RE3HmWjHKpLI0ygloIwVdO8x7n00XvqgO9Z5tSZdCb99n0/9u26uZ3gz+OgfcKJe+z6GMgPmpXXeKcDIOpq6LoWzXxPCAiNjlmD8srh2vJ7B/AiNP827QliJv6CSgHVjV8q0aLSlEzAOGLZvTh2Q57voN0Eeb0r8K3foxfXwOiEEadqIRKqYnwVdHvrQg4D8bsKJaoYup0Sg5c9db3hZtrKeJr+jCCDdb3ieqpBZzDurXqjWzN7P9CCv/+5NJngmtGjmwFZ4e6t7CYl6lQm8sbqlBXnEl6bGXb393voBVhdrv3Q== 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 DM8PR11MB5749.namprd11.prod.outlook.com (2603:10b6:8:10::15) by CH3PR11MB7844.namprd11.prod.outlook.com (2603:10b6:610:12a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.12; Tue, 10 Nov 2026 05:47:35 +0000 Received: from DM8PR11MB5749.namprd11.prod.outlook.com ([fe80::3085:48ed:687d:e6b6]) by DM8PR11MB5749.namprd11.prod.outlook.com ([fe80::3085:48ed:687d:e6b6%6]) with mapi id 15.21.0592.009; Tue, 10 Nov 2026 05:47:35 +0000 From: "Metzger, Markus T" To: Andrew Burgess CC: "gdb-patches@sourceware.org" Subject: RE: [PATCH v2] gdb: fix breakpoints on inline functions qualified with source file name Thread-Topic: [PATCH v2] gdb: fix breakpoints on inline functions qualified with source file name Thread-Index: AQHdcKAJfsOQSyUsjUeYUx7/TYGusbcmyzvQ Date: Tue, 10 Nov 2026 05:47:35 +0000 Message-ID: References: <20260813095614.3662164-1-markus.t.metzger@intel.com> <87tslp61ji.fsf@redhat.com> In-Reply-To: <87tslp61ji.fsf@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: DM8PR11MB5749:EE_|CH3PR11MB7844:EE_ x-ms-office365-filtering-correlation-id: bf72d8f4-ed79-478c-5753-08df3eee1f1a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|23010399003|1800799024|376014|18002099003|22082099003|10067099003|38070700021|4143699003|261028144727099003|11063799006|261102123227099003|56012099006|261022105027099003|261021121427099003|261026121527099003|261026140227099003; x-microsoft-antispam-message-info: dQl40L0jqzA3DjfLuLV78//NyhDq7jEsGIdGBhse0amJiIpn+BTk6H/tinXQ/w4WpfDLbIcshocuDOa1ySUdG2ZOkehXH+o6YLqaXZ1puNJeLBq90ORc+4DuvLIydQddeO1q2wly7eiT9buFITQJfSNzTYI6r9x5IJ2+fbOi9EyTEvoKpj8zrIGqBMYEBkAKfuyPKLCchLFnFrx0HZe8opZT/KtI4ZV8/lwvD3kOF/h4GJbt9H9cl3NfYxjOgk6gyQizg9TvBGxcCa9lmaWCpqAu4JPfPKUD1xxoi3A5nQlnI2OH6hJFiUXBlMjO7lcFNN0uA7xtgRB3WaGtj0/jneYiIgC+fa9w/DfKoFI8vcfvpikSg64jqG/GSd28WnCNaa/AShm+RHKwn8EzDrroZ6dOHjcPX1X9z5E0eK0Q/0svSWsw1R5H7xcqjzNhzxp7Rg5h/hQeXcJiuRsuK418XWlw3rjGHQz0ai1G3X6ERuvLBKRu6owr/osTDKEnJ5gk/4hnQaD4LCjYP+5Q+tAJplRZXOU+aeTkiE5vLEDeo3hj/0L2hzYO+lXOrocgTmlZUH65rNL8UTNsbebdw1O0REuQFtrxfGyaJeFXFumfCwNvCnnPAEYhGMIJrSBsBAB2AwH1JYVOKjaoyXMlacTq5QsLAo29+F3lympgvj8FMb+GDZIrkPqVvD2VQnptqJY2ygWAx5yWST6LgbFBflIwKOOIlYl21cFKfKz65w8t4f8= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5749.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(23010399003)(1800799024)(376014)(18002099003)(22082099003)(10067099003)(38070700021)(4143699003)(261028144727099003)(11063799006)(261102123227099003)(56012099006)(261022105027099003)(261021121427099003)(261026121527099003)(261026140227099003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?23HySHcaEiM4iy6Rl/skErWzFkGcMZxNT6Qt/vnOTckHqbuHN63inezibQPy?= =?us-ascii?Q?FepkJJxL4m3c4cJn5SydSNw7c3F7QvN89leuuxuLBV4htN2WtHh39OPkjUCG?= =?us-ascii?Q?FnFRkQ8ldHKWt6MNccqkzBP54EjwMd0TBkpylVTRdcTP2Gm8Vzvybh+PLo9n?= =?us-ascii?Q?KZokISOG5JfSxJoRlSktuHJOzXmOscPzZTn+j3o8wNPCE8jB3kfD3VBncgwI?= =?us-ascii?Q?y2yA0s2d5fUNYCs4/pYtlcXKdPHY+kXUED95mc5YRnhmfwucAqgmXlyAcbnE?= =?us-ascii?Q?2GskUdZH7nUpUWws5606hU9uMeu8oKwr2Q0U91v8Kji2YKzj1b1E13nLbCQV?= =?us-ascii?Q?JCuSX3yL9D46q90D4Hec0+WmhXsyaIu90vmR0EkqwG5vc/UVRR3iOIZcwYoW?= =?us-ascii?Q?bhN6Sg8HOJwCXQDZiat369MFoejHqTP0UBMPDHhCg8pn9A/yhi9llwey6Xio?= =?us-ascii?Q?PhCl8CKP+C1bB+YCxDrULffgXbTb6IYyFj9Cqc4b9LljzbF6NQ85XTnOObHA?= =?us-ascii?Q?KetE4hhDPh6hk7eYDhGrKmfl8kMLGYLNkQf3ZiMkUdRFCZGjNxlUZieTJ6rE?= =?us-ascii?Q?8YXwj2LTwRV3fEzPs/wxK3/moN3kh7ZtFd2OUuaUQGENEzJM14x/fTiWCz5x?= =?us-ascii?Q?dQz6HYTcSpm3iDA7oybf0vWJ8Cs2JClA5YjAPOCsDQJXw+loNUuUR9eKldLr?= =?us-ascii?Q?5Rg1B2iZ/stLB4f7dPTLR76dFcHwR1mq7H+5QcR8o+TxKmU7/zyUHkWQ4eYi?= =?us-ascii?Q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04uijtsyxyCcXxjoxXq6?= =?us-ascii?Q?MI1NHDl8pf18Ye33vWsbHrJgmwXkGw6oV/PRzveTKMIqzLLdx8SJLsIRQ8Wp?= =?us-ascii?Q?tp4a94aI6A=3D=3D?= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: iaCwfHsRGpEjgFYOYWXTfSsUHOG5CGMC4El+KD2Q30Y13BhXO7BNvEUaoOOoTX+y/rTCo/GkRQofkaZl/hJVG0Zf6SimNxxM1bjlLe9AkKlxxiki76q0KSVmPkDVy3Q6FalEa0pGDRIy9BR/VodZhwITdcqKDkNX0yVepd5K8IPqRcGJaY6DWlXEsesEqS+DuAFgrvgJJ7aANuojFZUh6JJYunwn78Fya/ynqV8dO7GPS5Pu5TGyEIkRQAvCNFL3lYTHDBhZTToWMYKIxoAoBGDz6OBRc2HkubTJ1++2qj64Ku5XxUXGcTSZ8LVJ3LC/MDm2u7lnsmXVM6osEQWoVw== X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5749.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf72d8f4-ed79-478c-5753-08df3eee1f1a X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2026 05:47:35.4197 (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: P4nVUMu72z5zEwIY3mJixFNCIhzgVQDODUr7sHIdXkN1FfdSj4rAWYUiPmTwhdyb5Y9xeONFh5lNCjnjsJIQwfnwxQ4dtOK418F46tRTe8E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7844 X-OriginatorOrg: intel.com Content-Transfer-Encoding: quoted-printable 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 Thanks for your review, Andrew, >> +static int >> +test (void) >> +{ >> + int f =3D foo (); >> + int b =3D bar (); >> + return f + b; >> +} >> + >> +int >> +main (void) >> +{ >> + /* Don't make breakpoints on foo and main bind to the same address. */ > >This comment is missing a space at the beginning, and a space at the end >after the period. But even then, at a first glance I don't understand >what this comment is telling me. Can you rewrite it to better explain >what's going on please. I just removed the comment. It was more confusing than helpful. To explain it here, if I had written it like this: int main (void) { int f =3D foo (); then, given that foo() is inlined, the initial breakpoint at main() for the= usual runto_main would be at the same address as the breakpoint at the inlined foo(), so we would have hit both breakpoints at once. Regards, Markus. ________________________________________ 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.