Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
820a866f
Commit
820a866f
authored
Nov 17, 2021
by
Jinoh Kang
Committed by
Alexandre Julliard
Nov 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Set reuseaddr flag for gdb remote socket.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
829c0674
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gdbproxy.c
programs/winedbg/gdbproxy.c
+3
-0
No files found.
programs/winedbg/gdbproxy.c
View file @
820a866f
...
...
@@ -2157,6 +2157,7 @@ static BOOL gdb_exec(unsigned port, unsigned flags)
static
BOOL
gdb_startup
(
struct
gdb_context
*
gdbctx
,
unsigned
flags
,
unsigned
port
)
{
SOCKET
sock
;
BOOL
reuseaddr
=
TRUE
;
struct
sockaddr_in
s_addrs
=
{
0
};
int
s_len
=
sizeof
(
s_addrs
);
fd_set
read_fds
;
...
...
@@ -2172,6 +2173,8 @@ static BOOL gdb_startup(struct gdb_context* gdbctx, unsigned flags, unsigned por
return
FALSE
;
}
setsockopt
(
sock
,
SOL_SOCKET
,
SO_REUSEADDR
,
(
char
*
)
&
reuseaddr
,
sizeof
(
reuseaddr
));
s_addrs
.
sin_family
=
AF_INET
;
s_addrs
.
sin_addr
.
S_un
.
S_addr
=
INADDR_ANY
;
s_addrs
.
sin_port
=
htons
(
port
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment