This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][NativePDB] Set block address range.
ClosedPublic

Authored by zequanwu on Sep 7 2022, 4:29 PM.

Details

Summary

The block address range was missing before.

Diff Detail

Event Timeline

zequanwu created this revision.Sep 7 2022, 4:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 4:29 PM
zequanwu requested review of this revision.Sep 7 2022, 4:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 4:29 PM
rnk accepted this revision.Sep 8 2022, 1:52 PM

lgtm

This revision is now accepted and ready to land.Sep 8 2022, 1:52 PM
This revision was automatically updated to reflect the committed changes.
labath added inline comments.Sep 9 2022, 5:46 AM
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
372

better move this inside the if block, so one does not have to think about what will happen when the address wraps around.

lldb/test/Shell/SymbolFile/NativePDB/blocks.cpp
18

I fear this test is going to be extremely fragile (susceptible to changes in codegen AND debug info generation). I'd probably write it in asm (you could even test the error msg then).

zequanwu marked 2 inline comments as done.Sep 9 2022, 3:48 PM
zequanwu added inline comments.
lldb/test/Shell/SymbolFile/NativePDB/blocks.cpp
18