Commit 5d8067c6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

dbghelp: Pass module to map_dwarf_register.

parent bae4776c
......@@ -153,7 +153,7 @@ static BOOL arm_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame,
}
#endif
static unsigned arm_map_dwarf_register(unsigned regno, BOOL eh_frame)
static unsigned arm_map_dwarf_register(unsigned regno, const struct module* module, BOOL eh_frame)
{
if (regno <= 15) return CV_ARM_R0 + regno;
if (regno == 128) return CV_ARM_CPSR;
......
......@@ -155,7 +155,7 @@ static BOOL arm64_stack_walk(struct cpu_stack_walk* csw, STACKFRAME64 *frame,
}
#endif
static unsigned arm64_map_dwarf_register(unsigned regno, BOOL eh_frame)
static unsigned arm64_map_dwarf_register(unsigned regno, const struct module* module, BOOL eh_frame)
{
if (regno <= 28) return CV_ARM64_X0 + regno;
if (regno == 29) return CV_ARM64_FP;
......
......@@ -508,7 +508,7 @@ done_err:
return FALSE;
}
static unsigned i386_map_dwarf_register(unsigned regno, BOOL eh_frame)
static unsigned i386_map_dwarf_register(unsigned regno, const struct module* module, BOOL eh_frame)
{
unsigned reg;
......
......@@ -55,7 +55,7 @@ static BOOL ppc_stack_walk(struct cpu_stack_walk* csw, STACKFRAME64 *frame,
return FALSE;
}
static unsigned ppc_map_dwarf_register(unsigned regno, BOOL eh_frame)
static unsigned ppc_map_dwarf_register(unsigned regno, const struct module* module, BOOL eh_frame)
{
FIXME("not done\n");
return 0;
......
......@@ -726,7 +726,7 @@ static void* x86_64_find_runtime_function(struct module* module, DWORD64 addr
return NULL;
}
static unsigned x86_64_map_dwarf_register(unsigned regno, BOOL eh_frame)
static unsigned x86_64_map_dwarf_register(unsigned regno, const struct module* module, BOOL eh_frame)
{
unsigned reg;
......
......@@ -560,7 +560,7 @@ struct cpu
void* (*find_runtime_function)(struct module*, DWORD64 addr);
/* dwarf dedicated information */
unsigned (*map_dwarf_register)(unsigned regno, BOOL eh_frame);
unsigned (*map_dwarf_register)(unsigned regno, const struct module* module, BOOL eh_frame);
/* context related manipulation */
void * (*fetch_context_reg)(union ctx *ctx, unsigned regno, unsigned *size);
......
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