Commit 8a940497 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Use dbghelp extended module info.

To pickup module's data model. Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
parent 6b2a3dcd
...@@ -978,16 +978,13 @@ static const struct data_model* get_data_model(DWORD64 modaddr) ...@@ -978,16 +978,13 @@ static const struct data_model* get_data_model(DWORD64 modaddr)
else if (ADDRSIZE == 4) model = ilp32_data_model; else if (ADDRSIZE == 4) model = ilp32_data_model;
else else
{ {
IMAGEHLP_MODULEW64 mi; struct dhext_module_information wmi;
DWORD opt = SymSetExtendedOption(SYMOPT_EX_WINE_NATIVE_MODULES, TRUE);
mi.SizeOfStruct = sizeof(mi); if (wine_get_module_information(dbg_curr_process->handle, modaddr, &wmi, sizeof(wmi)) &&
if (SymGetModuleInfoW64(dbg_curr_process->handle, modaddr, &mi) && wmi.type != DMT_PE)
(wcsstr(mi.ModuleName, L".so") || wcsstr(mi.ModuleName, L"<")))
model = lp64_data_model; model = lp64_data_model;
else else
model = llp64_data_model; model = llp64_data_model;
SymSetExtendedOption(SYMOPT_EX_WINE_NATIVE_MODULES, opt);
} }
return model; return model;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment