diff options
| author | Haoqian He <haoqian.he@smartx.com> | 2025-02-25 18:45:26 +0800 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-03-05 09:38:09 +0400 |
| commit | 46f83c898a6658921fed57f98af6d505ab78a6e4 (patch) | |
| tree | 44f385ae2cb9b000a3c0ce1d8fcacd9825fa23fc /gdbstub/system.c | |
| parent | a97ef3624437c5a5fbc8bd45e2a206d10ca840be (diff) | |
| download | focaccia-qemu-46f83c898a6658921fed57f98af6d505ab78a6e4.tar.gz focaccia-qemu-46f83c898a6658921fed57f98af6d505ab78a6e4.zip | |
chardev: use remoteAddr if the chardev is client
If the chardev is client, the socket file path in localAddr may be NULL. This is because the socket path comes from getsockname(), according to man page, getsockname() returns the current address bound by the socket sockfd. If the chardev is client, it's socket is unbound sockfd. Therefore, when computing the client chardev socket file path, using remoteAddr is more appropriate. Signed-off-by: Haoqian He <haoqian.he@smartx.com> Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20250225104526.2924175-1-haoqian.he@smartx.com>
Diffstat (limited to 'gdbstub/system.c')
0 files changed, 0 insertions, 0 deletions