Index: runtime/bin/dbg_connection.cc |
diff --git a/runtime/bin/dbg_connection.cc b/runtime/bin/dbg_connection.cc |
index 583d737497fe90f091582710c57ecc115a908f88..3c3069ada351cb4b301b2f23c0e7b6abefcd38cf 100644 |
--- a/runtime/bin/dbg_connection.cc |
+++ b/runtime/bin/dbg_connection.cc |
@@ -294,7 +294,11 @@ void DebuggerConnectionHandler::StartHandler(const char* address, |
// listen, accept connections from debuggers, read and handle/dispatch |
// debugger commands received on these connections. |
ASSERT(listener_fd_ == -1); |
- listener_fd_ = ServerSocket::CreateBindListen(address, port_number, 1); |
+ |
+ OSError *os_error; |
+ SocketAddresses* addresses = Socket::LookupAddress(address, -1, &os_error); |
+ listener_fd_ = ServerSocket::CreateBindListen( |
+ addresses->GetAt(0)->GetAddr(), port_number, 1); |
DebuggerConnectionImpl::StartHandler(port_number); |
} |