From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id 64DE53858C5F for ; Fri, 4 Aug 2023 13:23:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64DE53858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-3491516c4aeso7663665ab.1 for ; Fri, 04 Aug 2023 06:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1691155411; x=1691760211; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yjMdm4iZn+d/0gzyY6iwa74+QzKKBwS94MAPN0mmA2o=; b=YrE1yzswyLchgqnUBFKcw+jnbP3Phm7Ygoqmr+GLwSpQt/n3iP0Sl7WmSEoqe8l2bs JFOmIa9SgbDoEOUocnmcdgeQSNVJtqQlPEislcW03vgMyiFiPn1ORRbpZ6wvBXb0EUpj i0kpB6oj4paCa5Et7ralFMT9Vl2jOKcvaM33uNyVUEh0FdHzjOlGEFEX7ZR1oKir9unv XtpQtXnBuCyioaNXb8Q2WnusH0uO5FbCu3y4Hs1VgxurnX4ReOCLfHf+kNdIQtGEhgA3 Q1JDiExEZFwL9kaXia99siPcqGouh6s02ZZpH4QeUUlQ0Wkld39hkwBawbnQna/OKpJD gB8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691155411; x=1691760211; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yjMdm4iZn+d/0gzyY6iwa74+QzKKBwS94MAPN0mmA2o=; b=j66wsoWzUynETM4Uu0n4aLxmyVJmcojgUWS9nQQ1Z3TYFyzVZX6UklNK1WM5zBn4D0 GiH/53uun/DE9amZX2GzgHbeQbSgwlma2/7d2CIvtLA6SEaCbR/BBlWwM6jcz+zjT6J2 z+BTSKh+DdwiHV7/7THIRhB1ObOP36gaAVdSEf8J/Kqq4pQ1D6gUdvQatKtNDxEcVNvw rKNhkV9mFG1MzHDBkLXOTikinaHTYVwbPxtCLTP4rC/9V/8DbqGdSyroUIAZTTfaVTSl P0LQU4/Gx+/sdsZtPXMa15JVeAhCF5ac+xd2B+eVZ4YP5IIvhsiDB42svdQ+0pRuOiI1 AZ8A== X-Gm-Message-State: AOJu0YxiOZw7+WrIGTP9R3B70KSmJsM4gFZWpvrumQPn0jqfpXG8oiJA 9uger3YGGNHS2lGDy743ZK+kawtO87OI5QH7AqgEVQ== X-Google-Smtp-Source: AGHT+IGziR/RQrUXXMF9KBBkcoJXiZTTjQPHN/ahahrkQpfREw76TSusLxcYQhbNQmk95A5FWY1grA== X-Received: by 2002:a05:6e02:1a45:b0:346:5a8b:5415 with SMTP id u5-20020a056e021a4500b003465a8b5415mr2795518ilv.30.1691155411192; Fri, 04 Aug 2023 06:23:31 -0700 (PDT) Received: from localhost.localdomain (71-211-152-221.hlrn.qwest.net. [71.211.152.221]) by smtp.gmail.com with ESMTPSA id h23-20020a02c4d7000000b0042b320c13aasm563476jaj.89.2023.08.04.06.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 06:23:30 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Remove extra '.' from error message Date: Fri, 4 Aug 2023 07:23:23 -0600 Message-Id: <20230804132323.3372004-1-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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: A local gdb test failed with this error message: Remote communication error. Target disconnected.: Arg list too long. The ".:" seemed weird to me. This patch removes the ".". --- gdb/remote.c | 4 ++-- gdb/testsuite/gdb.server/server-kill.exp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index ff3d7e5cd32..6fefabac0ce 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -9648,7 +9648,7 @@ remote_target::readchar (int timeout) /* no return */ case SERIAL_ERROR: unpush_and_perror (this, _("Remote communication error. " - "Target disconnected.")); + "Target disconnected")); /* no return */ case SERIAL_TIMEOUT: break; @@ -9677,7 +9677,7 @@ remote_target::remote_serial_write (const char *str, int len) if (serial_write (rs->remote_desc, str, len)) { unpush_and_perror (this, _("Remote communication error. " - "Target disconnected.")); + "Target disconnected")); } if (rs->got_ctrlc_during_io) diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp index 4b40913fff6..a0326679714 100644 --- a/gdb/testsuite/gdb.server/server-kill.exp +++ b/gdb/testsuite/gdb.server/server-kill.exp @@ -97,7 +97,7 @@ proc_with_prefix test_tstatus {} { # Force GDB to talk with GDBserver, so that we can get the # "connection closed" error. - gdb_test "tstatus" {Remote connection closed|Remote communication error\. Target disconnected\.: Connection reset by peer\.} + gdb_test "tstatus" {Remote connection closed|Remote communication error\. Target disconnected: Connection reset by peer\.} } # Test unwinding with no debug/unwind info, right after the connection -- 2.40.1