[LIB]: Support DW_OP_constu in dwarf_expr
So that we can handle DW_AT_vtable_elem_location, that is also an offset expression. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
parent
ce516fb0cf
commit
0883a936d5
|
@ -228,7 +228,8 @@ static uint64_t attr_numeric(Dwarf_Die *die, uint32_t name)
|
|||
static uint64_t dwarf_expr(const uint8_t *expr, uint32_t len __unused)
|
||||
{
|
||||
/* Common case: offset from start of the class */
|
||||
if (expr[0] == DW_OP_plus_uconst) {
|
||||
if (expr[0] == DW_OP_plus_uconst ||
|
||||
expr[0] == DW_OP_constu) {
|
||||
uint64_t result;
|
||||
++expr;
|
||||
get_uleb128(result, expr);
|
||||
|
|
Loading…
Reference in New Issue