mirror of
https://github.com/reactos/wine.git
synced 2025-02-04 11:08:48 +00:00
dbghelp: Correctly handle the RULE_EXPRESSION when computing CFA in dwarf debug info.
This commit is contained in:
parent
b38cddf484
commit
1c037bf564
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user