diff options
author | Kyle Huey <me@kylehuey.com> | 2024-09-07 08:20:05 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-09-11 09:07:37 -0600 |
commit | 1628e02267448cd82e219a60a4ed37cfa18fd35a (patch) | |
tree | 5c2166a83db8d2bdaaa6bc73e461bfdf2c94baee /gdb/dwarf2/expr.c | |
parent | ef54c7a94feb96c98535d52efe420ad0d960f7ef (diff) | |
download | gdb-1628e02267448cd82e219a60a4ed37cfa18fd35a.zip gdb-1628e02267448cd82e219a60a4ed37cfa18fd35a.tar.gz gdb-1628e02267448cd82e219a60a4ed37cfa18fd35a.tar.bz2 |
gdb: Support DW_OP_constx (the standardized version of DW_OP_GNU_const_index).
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/dwarf2/expr.c')
-rw-r--r-- | gdb/dwarf2/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2/expr.c b/gdb/dwarf2/expr.c index cb80dbf..5ad17ea 100644 --- a/gdb/dwarf2/expr.c +++ b/gdb/dwarf2/expr.c @@ -1593,8 +1593,9 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr, uoffset))); result_val = value_from_ulongest (address_type, result); break; + case DW_OP_constx: case DW_OP_GNU_const_index: - ensure_have_per_cu (this->m_per_cu, "DW_OP_GNU_const_index"); + ensure_have_per_cu (this->m_per_cu, "DW_OP_constx"); op_ptr = safe_read_uleb128 (op_ptr, op_end, &uoffset); result = (ULONGEST) dwarf2_read_addr_index (this->m_per_cu, |