Remove extra '.' from error message
Checks
Commit 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 ".".
---
gdb/remote.c | 4 ++--
gdb/testsuite/gdb.server/server-kill.exp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Comments
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" == 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
@@ -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)
@@ -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