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
cc3dd00c
Commit
cc3dd00c
authored
Mar 04, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: module target: Better error handling when init fails and creates a dummy thread.
parent
f4e129ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tgt_module.c
programs/winedbg/tgt_module.c
+11
-3
No files found.
programs/winedbg/tgt_module.c
View file @
cc3dd00c
...
...
@@ -51,11 +51,17 @@ enum dbg_start tgt_module_load(const char* name, BOOL keep)
{
DWORD
opts
=
SymGetOptions
();
HANDLE
hDummy
=
(
HANDLE
)
0x87654321
;
enum
dbg_start
ret
=
start_ok
;
SymSetOptions
((
opts
&
~
(
SYMOPT_UNDNAME
|
SYMOPT_DEFERRED_LOADS
))
|
SYMOPT_LOAD_LINES
|
SYMOPT_AUTO_PUBLICS
|
0x40000000
);
SymInitialize
(
hDummy
,
NULL
,
FALSE
);
SymLoadModule
(
hDummy
,
NULL
,
name
,
NULL
,
0
,
0
);
if
(
!
SymInitialize
(
hDummy
,
NULL
,
FALSE
))
return
start_error_init
;
if
(
!
SymLoadModule
(
hDummy
,
NULL
,
name
,
NULL
,
0
,
0
))
{
ret
=
start_error_init
;
keep
=
FALSE
;
}
if
(
keep
)
{
...
...
@@ -64,6 +70,8 @@ enum dbg_start tgt_module_load(const char* name, BOOL keep)
SymSetOptions
(
SymGetOptions
()
|
0x40000000
);
dbg_curr_process
=
dbg_add_process
(
&
be_process_module_io
,
1
,
hDummy
);
dbg_curr_pid
=
1
;
dbg_curr_thread
=
dbg_add_thread
(
dbg_curr_process
,
2
,
NULL
,
NULL
);
/* FIXME: missing thread creation, fetching frames, restoring dbghelp's options... */
}
else
...
...
@@ -72,7 +80,7 @@ enum dbg_start tgt_module_load(const char* name, BOOL keep)
SymSetOptions
(
opts
);
}
return
start_ok
;
return
ret
;
}
static
BOOL
tgt_process_module_close_process
(
struct
dbg_process
*
pcs
,
BOOL
kill
)
...
...
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