aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-08-02 09:08:03 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-08-02 09:08:03 +0000
commitad4571f3f363b358d11ec13357f8bffdbdd4312b (patch)
tree40cbddb7023d2f38eba7798b78f6f4f3f7a27f26 /gdb
parent962b3eada2c73671d2b701c75ba2e2b2c616dfff (diff)
downloadgdb-ad4571f3f363b358d11ec13357f8bffdbdd4312b.zip
gdb-ad4571f3f363b358d11ec13357f8bffdbdd4312b.tar.gz
gdb-ad4571f3f363b358d11ec13357f8bffdbdd4312b.tar.bz2
* MAINTAINERS: Add myself to the write-after-approval list.
* ser-tcp.c (tcp_open): Use `localhost' as default host if no hostname is given.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/MAINTAINERS1
-rw-r--r--gdb/ser-tcp.c3
3 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8c6540d..809c5c3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-02 Corinna Vinschen <vinschen@redhat.com>
+
+ * 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 <ac131313@redhat.com>
* doublest.h (store_floating, floatformat_to_doublest): Make IN
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index 264a2d6..09c664a 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 fe5cb44..9a868e8 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)