Commit 1c037bf5 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Correctly handle the RULE_EXPRESSION when computing CFA in dwarf debug info.

parent b38cddf4
......@@ -2877,7 +2877,12 @@ static void apply_frame_info(struct module* module, struct cpu_stack_walk* csw,
switch (info->cfa_rule)
{
case RULE_EXPRESSION:
*cfa = *(ULONG_PTR*)eval_expression(module, csw, (const unsigned char*)info->cfa_offset, context);
*cfa = eval_expression(module, csw, (const unsigned char*)info->cfa_offset, context);
if (!sw_read_mem(csw, *cfa, cfa, sizeof(*cfa)))
{
WARN("Couldn't read memory at %p\n", (void*)*cfa);
return;
}
break;
case RULE_VAL_EXPRESSION:
*cfa = eval_expression(module, csw, (const unsigned char*)info->cfa_offset, context);
......
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