This is an archive of the discontinued LLVM Phabricator instance.

[lldb-server] Skip shared regions for memory allocation
ClosedPublic

Authored by emrekultursay on Jun 29 2022, 8:51 AM.

Diff Detail

Event Timeline

emrekultursay created this revision.Jun 29 2022, 8:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 8:51 AM
emrekultursay requested review of this revision.Jun 29 2022, 8:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 8:51 AM
DavidSpickett added a subscriber: DavidSpickett.
DavidSpickett added inline comments.
lldb/unittests/Process/Utility/LinuxProcMapsTest.cpp
299

I don't see a test for a mapping with "s" for the sharing char, did I miss it?

Added test that covers shared (s) input

Removed redundant comment

emrekultursay marked an inline comment as done.Jun 29 2022, 9:51 AM

PTAL.

lldb/unittests/Process/Utility/LinuxProcMapsTest.cpp
299

I added tests to cover shared (s). Thanks for noticing the missing test.

labath accepted this revision.Jun 30 2022, 1:10 AM

Looks good, thanks for fixing this.

This revision is now accepted and ready to land.Jun 30 2022, 1:10 AM
emrekultursay marked an inline comment as done.Jun 30 2022, 9:35 AM

Thanks. Please commit on my behalf.