This is an archive of the discontinued LLVM Phabricator instance.

[lldb] fix #61728 wrong parameter value display represented via DW_OP_deref and DW_OP_lt
Needs ReviewPublic

Authored by jwnhy on Apr 2 2023, 11:38 PM.

Details

Reviewers
JDevlieghere
Summary

This patch resolves an issue where a value is incorrectly displayed
if it is represented by DW_OP_deref and DW_OP_lt combined.

This issue is caused by lldb treating DW_OP_deref generic types
as unsigned by default, while DW_OP_lt should perform signed
comparison with these generic types by DWARF v5 standard.

This patch resolves this issue by making everything loaded by
DW_OP_deref as signed. As lldb does not really support generic
type, this is probably the best we can do.

A small regression test is also included in this patch.

Diff Detail

Event Timeline

jwnhy created this revision.Apr 2 2023, 11:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2023, 11:38 PM
jwnhy requested review of this revision.Apr 2 2023, 11:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2023, 11:38 PM