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

dbghelp: Attach a struct cpu* to every module.

parent e105e9d3
......@@ -430,6 +430,8 @@ struct module_format
} u;
};
struct cpu;
struct module
{
struct process* process;
......@@ -438,6 +440,7 @@ struct module
struct module* next;
enum module_type type : 16;
unsigned short is_virtual : 1;
struct cpu* cpu;
DWORD64 reloc_delta;
WCHAR* real_path;
......
......@@ -230,6 +230,9 @@ struct module* module_new(struct process* pcs, const WCHAR* name,
module->addr_sorttab = NULL;
module->num_sorttab = 0;
module->num_symbols = 0;
module->cpu = cpu_find(machine);
if (!module->cpu)
module->cpu = dbghelp_current_cpu;
vector_init(&module->vsymt, sizeof(struct symt*), 128);
vector_init(&module->vcustom_symt, sizeof(struct symt*), 16);
......
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