This is an archive of the discontinued LLVM Phabricator instance.

add a target dump section-load-list command for inspecting the Target's SectionLoadList
ClosedPublic

Authored by jasonmolenda on Jun 29 2023, 4:20 PM.

Details

Summary

When debugging possible issues with the Target's SectionLoadList table, it would be helpful to have a way to dump all of the entries. Add that.

Diff Detail

Event Timeline

jasonmolenda created this revision.Jun 29 2023, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 4:20 PM
jasonmolenda requested review of this revision.Jun 29 2023, 4:20 PM
mib accepted this revision.Jun 29 2023, 4:43 PM

That's indeed very helpful! LGTM!

This revision is now accepted and ready to land.Jun 29 2023, 4:43 PM
mib added inline comments.Jun 29 2023, 4:44 PM
lldb/source/Target/SectionLoadList.cpp
265–266 ↗(On Diff #536049)

Out of curiosity, why did you remove the section part ?

jasonmolenda added inline comments.Jun 29 2023, 5:00 PM
lldb/source/Target/SectionLoadList.cpp
265–266 ↗(On Diff #536049)

I was being grumpy when I saw all the fields SectionLoadList::Dump was outputting and removed one of them to make me feel better, but I have to acknowledge that seeing the actual Section* value for the section may be helpful when debugging lldb. I'll remove this part of the change.