This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Correct elision of line zero in mixed disassembly
ClosedPublic

Authored by kastiglione on May 11 2023, 10:07 AM.

Details

Summary

When disassemble --mixed is run, do not show source for line zero, as intended.

Diff Detail

Event Timeline

kastiglione created this revision.May 11 2023, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2023, 10:07 AM
kastiglione requested review of this revision.May 11 2023, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2023, 10:07 AM

For testing, can anyone recommend a way to construct debug info with line entries that have line zero?

add Shell test

aprantl added inline comments.May 11 2023, 1:02 PM
lldb/test/Shell/Commands/command-disassemble-mixed.test
13

Can you add some positive check too? Otherwise this test succeeds even on an empty output..

add positive check

kastiglione marked an inline comment as done.May 11 2023, 1:13 PM
aprantl accepted this revision.May 11 2023, 1:14 PM
This revision is now accepted and ready to land.May 11 2023, 1:14 PM