[PATCH] D56587: Fix sign/zero extension in Dwarf expressions.

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 8 07:36:45 PST 2019


probinson added a comment.

In D56587#1390564 <https://reviews.llvm.org/D56587#1390564>, @dstenb wrote:

> How should `DW_OP_convert` be handled when targeting DWARF versions earlier than 5? There is the GNU extension `DW_OP_GNU_convert`, which GDB seems to have had support for since 2011. The operation seems to be the identical to the final version that got into DWARFv5, so LLDB should be able to handle the two variants transparently. Can we emit that GNU extension (under some limitations)?


That still leaves the question of what to do when we're not going to emit a convert operator.  I don't object to DW_OP_GNU_convert in principle, but I do object to requiring all debuggers to support it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56587/new/

https://reviews.llvm.org/D56587





More information about the llvm-commits mailing list