Skip to content

Commit 67ee27f

Browse files
committed
Extend information for failed connection for gdb server
Before: ``` (lldb) r error: connect remote failed (Failed to connect port) error: Failed to connect port ``` After the patch: ``` (lldb) r error: connect remote failed (Failed to connect to localhost:47140) error: Failed to connect to localhost:47140 ```
1 parent ba5591e commit 67ee27f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Host/common/TCPSocket.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ Status TCPSocket::Connect(llvm::StringRef name) {
169169
return error;
170170
}
171171

172-
error = Status::FromErrorString("Failed to connect port");
172+
error = Status::FromErrorStringWithFormatv(
173+
"Failed to connect to {0}:{1}", host_port->hostname, host_port->port);
173174
return error;
174175
}
175176

0 commit comments

Comments
 (0)