diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-04 07:20:13 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-04 11:41:56 -0600 |
commit | c8f6fc9200d0611d688d830b7c92c182e59ea632 (patch) | |
tree | 730fe44b344081c58db21e830c238708a7ba90b1 /gdb | |
parent | 079e798302830c223cba374921c327ad72ea7db0 (diff) | |
download | binutils-c8f6fc9200d0611d688d830b7c92c182e59ea632.zip binutils-c8f6fc9200d0611d688d830b7c92c182e59ea632.tar.gz binutils-c8f6fc9200d0611d688d830b7c92c182e59ea632.tar.bz2 |
Remove extra '.' from error message
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 ".".
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/remote.c | 4 | ||||
-rw-r--r-- | 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 ff3d7e5..6fefaba 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 4b40913..a032667 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 |