[PATCH v3 33/44] gdb, dwarf, ze: add DW_OP_INTEL_regval_bits

Jan Beulich jbeulich@suse.com
Fri Aug 1 12:02:08 GMT 2025
On 01.08.2025 11:37, Tankut Baris Aktemur wrote:
> --- a/include/dwarf2.def
> +++ b/include/dwarf2.def
> @@ -688,6 +688,10 @@ DW_OP (DW_OP_GNU_const_index, 0xfc)
>  /* The GNU variable value extension.
>     See http://dwarfstd.org/ShowIssue.php?issue=161109.2 . */
>  DW_OP (DW_OP_GNU_variable_value, 0xfd)
> +/* https://dwarfstd.org/ShowIssue.php?issue=201007.1
> +
> +   The DW_OP_regval_bits operation extracts a value from a register.  */
> +DW_OP (DW_OP_INTEL_regval_bits, 0xfe)

You're adding this to the GNU extensions space, which doesn't seem right,
in particular given the name.
Furthermore what you link to is in state "Accepted with modification", so
it's unclear why you couldn't simply introduce DW_OP_regval_bits itself.

Jan


More information about the Binutils mailing list