* [PATCH] Remove extra '.' from error message
@ 2023-08-04 13:23 Tom Tromey
2023-08-04 16:21 ` John Baldwin
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2023-08-04 13:23 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove extra '.' from error message
2023-08-04 13:23 [PATCH] Remove extra '.' from error message Tom Tromey
@ 2023-08-04 16:21 ` John Baldwin
2023-08-04 17:42 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: John Baldwin @ 2023-08-04 16:21 UTC (permalink / raw)
To: Tom Tromey, gdb-patches
On 8/4/23 6:23 AM, Tom Tromey via Gdb-patches wrote:
> 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 ".".
Agreed.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
--
John Baldwin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove extra '.' from error message
2023-08-04 16:21 ` John Baldwin
@ 2023-08-04 17:42 ` Tom Tromey
0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2023-08-04 17:42 UTC (permalink / raw)
To: John Baldwin; +Cc: Tom Tromey, gdb-patches
>>>>> "John" == John Baldwin <jhb@FreeBSD.org> writes:
John> On 8/4/23 6:23 AM, Tom Tromey via Gdb-patches wrote:
>> 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 ".".
John> Agreed.
John> Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Thanks, I'm checking this in.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-04 17:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04 13:23 [PATCH] Remove extra '.' from error message Tom Tromey
2023-08-04 16:21 ` John Baldwin
2023-08-04 17:42 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).