aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/gdb.c
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2021-08-19 18:00:35 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2021-08-21 17:43:17 +0000
commit3a92927bb69f2d3fcd3dec4c909aab2191f4b848 (patch)
tree841484156f4b78d0f67bd34098b2a9d04cd7e2c2 /usr.sbin/bhyve/gdb.c
parent2cdff9918e79dcd9bfcaa919b8364afa41cd1e02 (diff)
downloadsrc-3a92927bb69f2d3fcd3dec4c909aab2191f4b848.tar.gz
src-3a92927bb69f2d3fcd3dec4c909aab2191f4b848.zip
Diffstat (limited to 'usr.sbin/bhyve/gdb.c')
-rw-r--r--usr.sbin/bhyve/gdb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/bhyve/gdb.c b/usr.sbin/bhyve/gdb.c
index 3e12c50f64cb..0cee1c8f9543 100644
--- a/usr.sbin/bhyve/gdb.c
+++ b/usr.sbin/bhyve/gdb.c
@@ -1840,11 +1840,7 @@ init_gdb(struct vmctx *_ctx)
saddr = get_config_value("gdb.address");
if (saddr == NULL) {
-#if defined(INET)
- saddr = "0.0.0.0";
-#elif defined(INET6)
- saddr = "[::]";
-#endif
+ saddr = "localhost";
}
debug("==> starting on %s:%s, %swaiting\n",
@@ -1860,7 +1856,7 @@ init_gdb(struct vmctx *_ctx)
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
- hints.ai_flags = AI_NUMERICHOST | AI_NUMERICSERV | AI_PASSIVE;
+ hints.ai_flags = AI_NUMERICSERV | AI_PASSIVE;
if (getaddrinfo(saddr, sport, &hints, &gdbaddr) != 0)
err(1, "gdb address resolve");