From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2082.outbound.protection.outlook.com [40.107.20.82]) by sourceware.org (Postfix) with ESMTPS id 12A1F3858D1E for ; Thu, 11 Apr 2024 14:45:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12A1F3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 12A1F3858D1E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.20.82 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712846722; cv=pass; b=dSEHrdqRUUPN7bDKSgOdlzRCmQdpbri7Ni2+nTjsDhllYMWplhGdXWQi84t9uyHVC74nQ08uxm6dszK9FFvGE6xQSxI1TOQQmCsXBITGSH0EyaM/xA139+VRPZHCQ/5dA6kQ/1LmIcBo0uU0KOk5LVwI7qcaIDMkpHfWCWCNtlA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1712846722; c=relaxed/simple; bh=nDZt9r3NpFAug/WW/dFu2UjfBazbIDxAqgYmAMfQda0=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=fre6ug3V46uODA3cF2JHeM8H2AlIGKjpo2WxmO1MHGUmWSDFc8n1wmJEddumJAjm7BwxlUOfLTXuthCQxFyoNVzV3jDUCE9jikXcmNcWf1dcMB5T2MQ541QofUoR948QNIA9PO5CwrgSL2fJasX25INJZOvO83mw5ZBWdbZJ6oM= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=U2/nd0QoszlAEFXKiRDWVOwoUmcazGuzdQZvPq0082CkUIuU1UCKT5mrgCDL2Ub2Tc+4sBmqwQOBeR5z+nuKROvkOItFCiRwV++nyiyGwd1EuyifSSMDsb3f0FJzwlpa0FhH0zx0jLaJq+RhVGDETFdVa/FA/cAT8kP/POKkUVHR+epFdsBD4ab951kLeIhyUQoJtdBgFOCTyzbhZWgkdqorewLQi+gABx/AAao54x3BMOLtPigSX8PhXUcpzJ1tSVfewJGjNK5RzkzUkA9s/M7bgf26wgkGZ2C2pRKFhf8sLagNyprKuIQr6X2IpLXjAl/5quFuyOSnTzrI0m8rFA== ARC-Message-Signature: i=2; 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=WRMH8GAh7qkrNbWDnvsmzO/e0SthcXfG5oAUFyfmbvQ=; b=SeCoBpkEh2QDTOJLvuu7vi3bHrjmfOosVJ/9ATNq2bCIshNl/uNPxKk6WPv3MXaRqVCWsZiu8idcN4vby4jrhRJOApWXpicjXkrk8QnXI4f3YlddyDeVh8Cbd5BYhKJDJEGfJBcMdEwKhniAHnPPQjBlq/0OxWlOzFjsWsQOckfBMA6iZsOzjdGJbk4MPpKj2CX2EthZnYc8tqGMr31Bcz1B+npUPU/M5A4IiaX24fJ7jmGnezjLnrgWnJHHZJDdPTkDd+rpJZ+XyQ0JTOANkwaPzNQPBbBytBllu0J1Te2gfoB1AFJuNJ7OAZw2VdYRrnfsBGuFmjSFLUQIR2EkiA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WRMH8GAh7qkrNbWDnvsmzO/e0SthcXfG5oAUFyfmbvQ=; b=a6Gbr8jmu1vcGHCahLBeL0Ri9nYFNYGN6Hze92PTHWYd1wzmLidkLdvBaBcuL88gZuQy/lUGHWC5zj4lZzbWyk/YP+TUYn7LAeq3Vi1iMjrMZQtXN1Rp+/77C4ZWS9WOdvJRMRcDPTXJtx2Rp0A9prviNECEoLwr4q0Iq6StnnA= Received: from DU2PR04CA0058.eurprd04.prod.outlook.com (2603:10a6:10:234::33) by GV2PR08MB9254.eurprd08.prod.outlook.com (2603:10a6:150:d4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 11 Apr 2024 14:45:18 +0000 Received: from DB5PEPF00014B8D.eurprd02.prod.outlook.com (2603:10a6:10:234:cafe::30) by DU2PR04CA0058.outlook.office365.com (2603:10a6:10:234::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46 via Frontend Transport; Thu, 11 Apr 2024 14:45:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5PEPF00014B8D.mail.protection.outlook.com (10.167.8.201) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Thu, 11 Apr 2024 14:45:17 +0000 Received: ("Tessian outbound 552c4e78aa9e:v300"); Thu, 11 Apr 2024 14:45:17 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: fe53472bd4199dd5 X-CR-MTA-TID: 64aa7808 Received: from dd236ad5d4e4.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id ADB797CC-262B-4E3C-84B7-C64CD82BF03A.1; Thu, 11 Apr 2024 14:45:10 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dd236ad5d4e4.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 11 Apr 2024 14:45:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FltS5hGvnbYjRXMcrSl0T+XYKoCfEcdQyCYG582Qq+pjKSb3rEuOqLhpJazhYCEz2mY/B1uOhT2XT95+hO75Br9cLUzs3zs9pXW8eHAgRl6F/F0o9jrdPgr60pC5We8eNczQYp45xSKgVe08onpR0IJu9jq7fpK1at4cRHfGqy+TLmxADzhHB3mUKDBAJJmojOUnaPX1oJgGFM8yBnSrsBd8BZA80pNq+aG6+Q+faKlhCczmlZtB6jsbDL7riP5HEbK/nkGUtYdiFeE+AZA2IEm8A8JvqKT3+LrrOMU9Fa6vCgY+Q0BP+pTbPE5cfz/sCIe0+cDA0bG9mb3r+YdnFQ== 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=WRMH8GAh7qkrNbWDnvsmzO/e0SthcXfG5oAUFyfmbvQ=; b=NlXxe9msg27JQXMranZiABSZHII/x5AHT2gTTHz8yfQnw+3bxLsf7agExeXVCCg3JSCUK9si1tDvfr0/DESHpuwR+2kHFx+NSuiJn9Qs6YLWYWBHhciiN4cyaLJLIbaU2fQfma0pMLAxGdudfhv9p4YuPlpJDT7ZcymA8e8twcXGxGFy6tmF0RYzlRKDvt3gjrn0Bligpqg01r/o6NxNH1UwiIvsfFtVZB5PQM7Dfh7lDVU0BGaZgsPLdjWx15yMNZU5HAAcfkzImnY5L5JhYpTfLJAsbtsB8hD8JTfpciGStgesJU+GkzPD/Knz/j+Y/Pro7Hi/O/wNxYv8guoXTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WRMH8GAh7qkrNbWDnvsmzO/e0SthcXfG5oAUFyfmbvQ=; b=a6Gbr8jmu1vcGHCahLBeL0Ri9nYFNYGN6Hze92PTHWYd1wzmLidkLdvBaBcuL88gZuQy/lUGHWC5zj4lZzbWyk/YP+TUYn7LAeq3Vi1iMjrMZQtXN1Rp+/77C4ZWS9WOdvJRMRcDPTXJtx2Rp0A9prviNECEoLwr4q0Iq6StnnA= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by PAVPR08MB9403.eurprd08.prod.outlook.com (2603:10a6:102:300::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 11 Apr 2024 14:45:08 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::77d4:d040:b19d:6472]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::77d4:d040:b19d:6472%4]) with mapi id 15.20.7409.053; Thu, 11 Apr 2024 14:45:06 +0000 Message-ID: <3bccdd10-eab7-4e73-acc3-2f160f62eaaf@arm.com> Date: Thu, 11 Apr 2024 15:45:02 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Strip trailing newlines from input string To: Tom Tromey Cc: gdb-patches@sourceware.org, =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= References: <20240408171818.1856529-1-tromey@adacore.com> <87a5m03tek.fsf@tromey.com> Content-Language: en-US From: Luis Machado In-Reply-To: <87a5m03tek.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0062.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2af::18) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|PAVPR08MB9403:EE_|DB5PEPF00014B8D:EE_|GV2PR08MB9254:EE_ X-MS-Office365-Filtering-Correlation-Id: 12f121e9-73fc-4438-21cd-08dc5a36016c x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 53BwvwkWASCy83CFn4PiNLQyP2rnhsD6S9r0cH3/eWysZB924xBxuY63yYzCidtZBAQZ4Dv/gdsxeH55KW9yUjqR5Fj7I1dXzoXS5XvUvNPHHqCLANtMURmFCzBD5/RXdQEhZTJ7Tl1522hp/VZW24SBoQuVUeA2dah8ieZQ2bmSnmko2Z7dFfIqUVqF1Pu591OI4nYYKLSVJhKZPlMLT1Q7QMO8xszYIHOUYu7y/EpUm43u1FeWWJMwq8tYZLomKJEdRDt/XzNlExJvkmHqQg4lOljCEODo6/w5VKk0VTboufE7WIBj2WMAkCcV3fn1Pq6k5HXJXWGSJokhwiHVoF/Fp23dAFWNb9DiUosLT+/OUr4h9qLDM9YeETACoD5/dBvYOV6CqCPWG3ebOX2TKRkrYd0UZj1mKgyp4yiqceCOf3r+DCeLR2/fdLsz5QABzoRv9pmOiph0zscV93EXIKJd5SjH6uYJw6uv9Vj3gjCQNmEPVJNCaqOjGRtdUso832L6EtOz0cIn3+SvbHXGsUZGIHP7CG2dCh1fxH+LirSLG+1E9482wT74URjch1bbsugMvT7YhxV4N5U0xlpOswNPrtisfvJ70qAO+iqliS0= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9403 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B8D.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 73d45fe1-777b-4b7f-02e4-08dc5a35fa5b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b3eMsTKhgYzx6oF1DvgzRSRNdQVC631frWBO4BQ9AxmZfx8S6c2Cw5Y+n9jJV64DUtqDRXLzaP3m9cG9jvsYz6cV/JcPdPVQQz2sCQoy4hiIIFwHxfwHNO6gAxMwJB6YVblFUeWzl8Lt6bVylCW5+576kYpR+AJ+zC9rkUSbvuxco76/m4hcM3iagwZ0vPFaOAnxKpXXKO6xXHz/HcLT/MnBRjFV0Ob/XcHRkBicZLvgBHDRoJVjw2LBWang6EaKdmPA72aT+CgAZ+phefgDyYDTHcGPq8UF8AJk1dpNpK+nfC7KgJ5gu11Wb+vwklQd/XIntfJ5eyepTF65gWuYGzM4IwbyQB9eQthnbfLtcygFuqnw3yo0wll3HAXAgE+qXu5Kre2ryhvwglIsgUfxFIV1reCta9D7khA0I9yZtgSmTKkzz+9z2aTRPDeI1TeVZ6VxvolrUTmlvZeE95+fwRexxmHLvfuq4DSHaGAK6JEJb+l07MdImWgSskbJC0KkwUuk/LD9XXYop0vxU1Rw+SWLMMa9eGQeH4ji1rN9VlsReV83Ci9soF9QGGoAH9+KKValeWlc4ix3eqooVsi0Hysm4BgohEks4edQVh80qtWUZ6LS95f9vrCwf1DyEpN7aHeybvsEhptfEs/8hL0PedDzyug6wF//e0uJ7lTLpscKWE8yvRT+Rv9LbdlS2vdzR67P2+m5YfvOchaDWMMJvA== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(36860700004)(1800799015)(376005)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 14:45:17.8365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12f121e9-73fc-4438-21cd-08dc5a36016c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B8D.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9254 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 4/11/24 14:45, Tom Tromey wrote: > Luis> Looks good to me. > > Luis> Approved-By: Luis Machado > Luis> Tested-By: Luis Machado > > Thanks. > > Unfortunately the CI didn't like it, but I have no idea why. > In the gdb.log the echo output doesn't appear at all. > > ^[[?2004h(gdb) ^[[7mecho hello^[[m^M > ^M^[[A(gdb) FAIL: gdb.base/paste-newline.exp: newline removed from paste > > I don't know why this would happen or how to debug it. > > Tom What particular builder was this? I ran a few checks on my end and the test passed OK. Maybe a different terminal setup or timing issue?