Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8a940497
Commit
8a940497
authored
Nov 24, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Use dbghelp extended module info.
To pickup module's data model. Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
6b2a3dcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
types.c
programs/winedbg/types.c
+3
-6
No files found.
programs/winedbg/types.c
View file @
8a940497
...
...
@@ -978,16 +978,13 @@ static const struct data_model* get_data_model(DWORD64 modaddr)
else
if
(
ADDRSIZE
==
4
)
model
=
ilp32_data_model
;
else
{
IMAGEHLP_MODULEW64
mi
;
DWORD
opt
=
SymSetExtendedOption
(
SYMOPT_EX_WINE_NATIVE_MODULES
,
TRUE
);
struct
dhext_module_information
wmi
;
mi
.
SizeOfStruct
=
sizeof
(
mi
);
if
(
SymGetModuleInfoW64
(
dbg_curr_process
->
handle
,
modaddr
,
&
mi
)
&&
(
wcsstr
(
mi
.
ModuleName
,
L".so"
)
||
wcsstr
(
mi
.
ModuleName
,
L"<"
)))
if
(
wine_get_module_information
(
dbg_curr_process
->
handle
,
modaddr
,
&
wmi
,
sizeof
(
wmi
))
&&
wmi
.
type
!=
DMT_PE
)
model
=
lp64_data_model
;
else
model
=
llp64_data_model
;
SymSetExtendedOption
(
SYMOPT_EX_WINE_NATIVE_MODULES
,
opt
);
}
return
model
;
}
...
...
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