From ad4571f3f363b358d11ec13357f8bffdbdd4312b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 2 Aug 2001 09:08:03 +0000 Subject: [PATCH] * MAINTAINERS: Add myself to the write-after-approval list. * ser-tcp.c (tcp_open): Use `localhost' as default host if no hostname is given. --- gdb/ChangeLog | 6 ++++++ gdb/MAINTAINERS | 1 + gdb/ser-tcp.c | 3 +++ 3 files changed, 10 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c6540d4804..809c5c3d29c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-08-02 Corinna Vinschen + + * MAINTAINERS: Add myself to the write-after-approval list. + * ser-tcp.c (tcp_open): Use `localhost' as default host if no + hostname is given. + 2001-08-01 Andrew Cagney * doublest.h (store_floating, floatformat_to_doublest): Make IN diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index 264a2d6e493..09c664a6bd7 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -353,6 +353,7 @@ David Smith dsmith@redhat.com Stephen P. Smith ischis2@home.com Gary Thomas gthomas@redhat.com Tom Tromey tromey@redhat.com +Corinna Vinschen vinschen@redhat.com diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index fe5cb4420b9..9a868e8df72 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -63,6 +63,9 @@ tcp_open (struct serial *scb, const char *name) hostname[tmp] = '\000'; /* Tie off host name */ port = atoi (port_str + 1); + if (!hostname[0]) + strcpy (hostname, "localhost"); + hostent = gethostbyname (hostname); if (!hostent) -- 2.30.2