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
2b713ba6
Commit
2b713ba6
authored
Apr 13, 2001
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhanced robustness at startup.
parent
577e2298
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
winedbg.c
debugger/winedbg.c
+9
-5
No files found.
debugger/winedbg.c
View file @
2b713ba6
...
...
@@ -221,6 +221,7 @@ static DBG_THREAD* DEBUG_AddThread(DBG_PROCESS* p, DWORD tid,
t
->
wait_for_first_exception
=
0
;
t
->
dbg_exec_mode
=
EXEC_CONT
;
t
->
dbg_exec_count
=
0
;
sprintf
(
t
->
name
,
"%08lx"
,
tid
);
p
->
num_threads
++
;
t
->
next
=
p
->
threads
;
...
...
@@ -866,15 +867,18 @@ int DEBUG_main(int argc, char** argv)
DWORD
pid
;
if
((
pid
=
atoi
(
argv
[
1
]))
!=
0
&&
(
hEvent
=
(
HANDLE
)
atoi
(
argv
[
2
]))
!=
0
)
{
BOOL
ret
=
DEBUG_Attach
(
pid
,
TRUE
);
SetEvent
(
hEvent
);
CloseHandle
(
hEvent
);
if
(
!
ret
)
{
if
(
!
DEBUG_Attach
(
pid
,
TRUE
))
{
DEBUG_Printf
(
DBG_CHN_ERR
,
"Can't attach process %ld: %ld
\n
"
,
DEBUG_CurrPid
,
GetLastError
());
/* don't care about result */
SetEvent
(
hEvent
);
goto
leave
;
}
if
(
!
SetEvent
(
hEvent
))
{
DEBUG_Printf
(
DBG_CHN_ERR
,
"Invalid event handle: %p
\n
"
,
hEvent
);
goto
leave
;
}
CloseHandle
(
hEvent
);
DEBUG_CurrPid
=
pid
;
}
}
...
...
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