Commit 23494334 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Don't expose module whose machine isn't the process' one to gdb.

parent 71dbcbce
......@@ -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)
......
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