mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 18:47:07 +00:00
winedbg: Don't expose module whose machine isn't the process' one to gdb.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
71dbcbce26
commit
234943344f
|
@ -1692,7 +1692,9 @@ static BOOL CALLBACK packet_query_libraries_cb(PCSTR mod_name, DWORD64 base, PVO
|
|||
char buffer[0x400];
|
||||
|
||||
mod.SizeOfStruct = sizeof(mod);
|
||||
SymGetModuleInfo64(gdbctx->process->handle, base, &mod);
|
||||
if (!SymGetModuleInfo64(gdbctx->process->handle, base, &mod) ||
|
||||
mod.MachineType != gdbctx->process->be_cpu->machine)
|
||||
return TRUE;
|
||||
|
||||
reply_buffer_append_str(reply, "<library name=\"");
|
||||
if (strcmp(mod.LoadedImageName, "[vdso].so") == 0)
|
||||
|
|
Loading…
Reference in a new issue