dbghelp: Attach a struct cpu* to every module.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e105e9d35e
commit
d72e6ac772
|
@ -430,6 +430,8 @@ struct module_format
|
||||||
} u;
|
} u;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct cpu;
|
||||||
|
|
||||||
struct module
|
struct module
|
||||||
{
|
{
|
||||||
struct process* process;
|
struct process* process;
|
||||||
|
@ -438,6 +440,7 @@ struct module
|
||||||
struct module* next;
|
struct module* next;
|
||||||
enum module_type type : 16;
|
enum module_type type : 16;
|
||||||
unsigned short is_virtual : 1;
|
unsigned short is_virtual : 1;
|
||||||
|
struct cpu* cpu;
|
||||||
DWORD64 reloc_delta;
|
DWORD64 reloc_delta;
|
||||||
WCHAR* real_path;
|
WCHAR* real_path;
|
||||||
|
|
||||||
|
|
|
@ -230,6 +230,9 @@ struct module* module_new(struct process* pcs, const WCHAR* name,
|
||||||
module->addr_sorttab = NULL;
|
module->addr_sorttab = NULL;
|
||||||
module->num_sorttab = 0;
|
module->num_sorttab = 0;
|
||||||
module->num_symbols = 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->vsymt, sizeof(struct symt*), 128);
|
||||||
vector_init(&module->vcustom_symt, sizeof(struct symt*), 16);
|
vector_init(&module->vcustom_symt, sizeof(struct symt*), 16);
|
||||||
|
|
Loading…
Reference in New Issue