This is an archive of the discontinued LLVM Phabricator instance.

[Symbolizer] Map from module-relative addresses in ProcessContext.
AcceptedPublic

Authored by mysterymath on Apr 11 2023, 1:55 PM.

Details

Summary

This makes it an error for module-relative addresses to overlap. mmap
addresses are expected to be the runtime locations of the
module-relative virtual addresses, so the mapping should always be 1:1.

Diff Detail

Event Timeline

mysterymath created this revision.Apr 11 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2023, 1:55 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
mysterymath requested review of this revision.Apr 11 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2023, 1:55 PM

Tag commit message.

mysterymath retitled this revision from Map from module-relative addresses in MarkupContext. to [Symbolizer] Map from module-relative addresses in MarkupContext..Apr 11 2023, 2:01 PM
mysterymath retitled this revision from [Symbolizer] Map from module-relative addresses in MarkupContext. to [Symbolizer] Map from module-relative addresses in ProcessContext..Apr 24 2023, 3:50 PM
mcgrathr accepted this revision.Apr 28 2023, 8:07 PM
mcgrathr added inline comments.
llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
121

Is it not desirable to report the column location of the address field? This error is indicating that the address and/or size is problematic, so calling one of them the precise error location rather than the beginning of the line seems to make sense.

This revision is now accepted and ready to land.Apr 28 2023, 8:07 PM