From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by sourceware.org (Postfix) with ESMTPS id CCB1C3858D39 for ; Mon, 15 Apr 2024 15:04:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CCB1C3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CCB1C3858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::30 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713193465; cv=none; b=b4QeLrofTuSSUy2Rp5CItIi1ZFVdEpgs1JMCiFIOXL4MhAFoxWyyOBGsnJppCfPjkYNczvWGr6vVpzONSzjubbooLtMqBeket3Wx5mE2FzPMBDSpwwosBeoj4ke6jTJpAOWe6WOG8pnHI4ZxH2BYG8uTOtXukyd6mB0ZurZERrY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713193465; c=relaxed/simple; bh=4qY3bPkVz/Wzvi2Q2/5kNjTUt7qRwgEhfhkwA9Wrhrs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mmRPD8b/jsTrdP88/G7U3Rn7+2lCzkqSDWIw9+Fc9g3DqkiLOhEJ+UzJt5Cr7a5exSa+iaHjpOxgX7B2ECGFaCTe6QVIj0YCMy3e+gpCK1+8V1qTcQqRONbmhZ1ZRsDqXokLTwky04H1nwXyA1vCmgNGVRyCz7P729aF+ikyDKM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-22f01274622so2309002fac.1 for ; Mon, 15 Apr 2024 08:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1713193454; x=1713798254; darn=sourceware.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YVwQ6yx/AiYgDbaQMZG9L/2f4wPYrQBJsAfPEtzDHEQ=; b=J21/9zd5bBJZxbdK45uVPJgh8n14Ad2dTaPRlxbtfxLCG4fnAV93f979/bhaDjhv9h bOwlO31LnLUqOeb2d8ZGoKvEHZtHRJppuA/Qr6ckWdUd20VI35nrI2tfQ+F/4rg6tXpY 3cJ8Fp612QbwrvBtTWojEwKs4IF52lAsUR3f7r9bjCHQ6XyJ8E6GoThtTr7g1HPn1Q4s lqk4U7lkrgq4jkNPEIoXfC47bkIAms5qC8CL3MgDQWmDTyy7MQqiXqesN6kkWf7fEJRr oYgyiI/3hEWHOd8yPKuC4+aTjLUBxSN7muhXfXNUMGWFC2v655JCYmVS/YT0lH1svgrc jm9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713193454; x=1713798254; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YVwQ6yx/AiYgDbaQMZG9L/2f4wPYrQBJsAfPEtzDHEQ=; b=RUwAlDHFsvNCOM1VtiEltNinmal4waAhyaDyzRRSL02ys4gzgfcQTwnSYLBSaV0dju NZlnSB4t/ABohb+6eaJ7yBFq/M63WqewTxp02DtjSnOfieNk9Bn4aw62oZgklIjlNix3 Hk4yGkjXsAwDtWNtXqSJHECV320Vpqkzmzz83YKSXPgfAIIiNjhU6reN+LqwRX+yx6g3 lu+F6Itst9ul25I+Ae8OjvEr3/Y15Qav6+4BAG9RCaTEmbgbiTAEtrrO2+CBQ1s+5T1U 1FnDiKInYX0UxepwK17ymRiJiqY6s3YPMAZG971C8lOUj/Rb5GgcQ6LRoAVlMavsIUeI jAYQ== X-Forwarded-Encrypted: i=1; AJvYcCVw41sVyeDMUhpxy36FU2nnwvCdRdaAOFYXxp2nxbsPMvvfDHNaNAdtYmJaH1+XC19rB5qX4USxt49jM2+lnAKVdQZUDqUl3A/Ngg== X-Gm-Message-State: AOJu0YwJUeNwRy3G5tHNch1Rr9kIGVzBIS7hgZpS7JWXxr7eIcyY8oof 5ktmWFjxUvn3oXZ4K/noChDU5Aq96Vgy6TpW5vC9kdkjuzpmCO/y04si7/x6RA== X-Google-Smtp-Source: AGHT+IFwETMSZZLNTG/ZRY0EYbIbEH3TEBRv1nGKZZ+X4lcYcJazi/IDdckU4ylLiCRsbWApJRa5pQ== X-Received: by 2002:a05:6871:7429:b0:22e:bf56:7d0 with SMTP id nw41-20020a056871742900b0022ebf5607d0mr13749809oac.14.1713193453922; Mon, 15 Apr 2024 08:04:13 -0700 (PDT) Received: from murgatroyd (97-122-82-115.hlrn.qwest.net. [97.122.82.115]) by smtp.gmail.com with ESMTPSA id n4-20020a056638210400b00482a9f7066csm3195778jaj.151.2024.04.15.08.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 08:04:13 -0700 (PDT) From: Tom Tromey To: Thiago Jung Bauermann Cc: Luis Machado , Tom Tromey , gdb-patches@sourceware.org, =?utf-8?Q?K=C3=A9vin?= Le Gouguec Subject: Re: [PATCH] Strip trailing newlines from input string References: <20240408171818.1856529-1-tromey@adacore.com> <87a5m03tek.fsf@tromey.com> <3bccdd10-eab7-4e73-acc3-2f160f62eaaf@arm.com> <87a5lzoouv.fsf@linaro.org> X-Attribution: Tom Date: Mon, 15 Apr 2024 09:04:11 -0600 In-Reply-To: <87a5lzoouv.fsf@linaro.org> (Thiago Jung Bauermann's message of "Thu, 11 Apr 2024 13:17:44 -0300") Message-ID: <87ttk23bx0.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Thiago> The Linaro CI uses the read1 tool which makes Expect read the GDB output Thiago> one byte at a time. Aha, thanks. I'd forgotten about this. I think the problem is that the gdb_test_multiple isn't matching the command itself, so the 'echo hello' confuses it into failing. I'm going to check this in with a small update to work with read1. Tom