[PATCH v4 31/44] gdb, dwarf, ze: add DW_OP_INTEL_regval_bits
Project / Subsystem
binutils / binutils
Date
2026-08-12
Proposer
Markus Metzger <markus.t.metzger@intel.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Extends DWARF expression capabilities to precisely access bit fields within registers.
- • Requires modifications in both binutils (for decoding) and gdb (for evaluation).
All attributes
- project
- binutils
- subsystem
- binutils
- patch_id
- —
- discussion_id
- 20260812132805.380163-32-markus.t.metzger@intel.com
- source_type
- public_inbox
- title
- [PATCH v4 31/44] gdb, dwarf, ze: add DW_OP_INTEL_regval_bits
- headline
- gdb, dwarf, ze: add DW_OP_INTEL_regval_bits
- tldr
- Adds support for the new DWARF expression DW_OP_INTEL_regval_bits, which allows accessing specific bit ranges within registers.
- proposer
- Markus Metzger <markus.t.metzger@intel.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Extends DWARF expression capabilities to precisely access bit fields within registers.
- • Requires modifications in both binutils (for decoding) and gdb (for evaluation).
- series_id
- binutils:gdb, dwarf, ze: add dw_op_intel_regval_bits
- series_role
- reply
- series_parts
- []
- tags
-
- • binutils
- • gdb
- • dwarf
- • debugging
- • intel
- bugzilla_url
- —
- date
- 2026-08-12T00:00:00.000Z
[PATCH v4 31/44] gdb, dwarf, ze: add DW_OP_INTEL_regval_bits
This patch adds support for a new DWARF opcode, DW_OP_INTEL_regval_bits, proposed by Intel. This opcode allows debuggers to read specific bit ranges from registers, extending the capabilities of DWARF expressions for more precise debugging information. The implementation involves changes in binutils (for DWARF decoding) and gdb (for expression evaluation), including functions to safely read and copy bit segments from registers.