dbghelp: Add 2 new darf defines and implement DW_OP_stack_value.

This commit is contained in:
Marcus Meissner 2010-05-31 22:08:28 +02:00 committed by Alexandre Julliard
parent 7342bce80d
commit 4f2e15d053
3 changed files with 11 additions and 0 deletions

View file

@ -847,6 +847,10 @@ compute_location(dwarf2_traverse_context_t* ctx, struct location* loc,
loc->kind = loc_dwarf2_block;
}
break;
case DW_OP_stack_value:
/* Expected behaviour is that this is the last instruction of this
* expression and just the "top of stack" value should be put to loc->offset. */
break;
default:
if (op < DW_OP_lo_user) /* as DW_OP_hi_user is 0xFF, we don't need to test against it */
FIXME("Unhandled attr op: %x\n", op);

View file

@ -379,6 +379,9 @@ typedef enum dwarf_operation_e
DW_OP_form_tls_address = 0x9b,
DW_OP_call_frame_cfa = 0x9c,
DW_OP_bit_piece = 0x9d,
/** Dwarf4 new values */
DW_OP_implicit_value = 0x9e,
DW_OP_stack_value = 0x9f,
/* Implementation defined extensions */
DW_OP_lo_user = 0xe0,

View file

@ -724,6 +724,10 @@ static void symt_fill_sym_info(struct module_pair* pair,
sym_info->Register = loc.reg ? loc.reg : CV_REG_EBP;
sym_info->Address = loc.offset;
break;
case loc_absolute:
sym_info->Flags |= SYMFLAG_VALUEPRESENT;
sym_info->Value = loc.offset;
break;
default:
FIXME("Shouldn't happen (kind=%d), debug reader backend is broken\n", loc.kind);
assert(0);