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:
Eric Pouech 2023-02-01 16:23:00 +01:00 committed by Alexandre Julliard
parent 71dbcbce26
commit 234943344f

View file

@ -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)