This is an archive of the discontinued LLVM Phabricator instance.

[lldb/API] Add ability to check if module is backed by a file on disk
ClosedPublic

Authored by mib on Jan 26 2022, 9:14 AM.

Details

Summary

This patch introduces a new SBAPI method: SBModule::IsFileBacked

As the name suggests, it tells the user if the module's object file is
on disk or in memory.

rdar://68538278

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib requested review of this revision.Jan 26 2022, 9:14 AM
mib created this revision.
mib edited the summary of this revision. (Show Details)Jan 26 2022, 9:20 AM
This revision is now accepted and ready to land.Jan 26 2022, 11:02 AM
mib updated this revision to Diff 403348.Jan 26 2022, 11:31 AM
mib retitled this revision from [lldb/API] Add ability to check if module is reading from memory to [lldb/API] Add ability to check if module is backed by a file on disk.
mib edited the summary of this revision. (Show Details)

As discussed with @jingham offline, it's less ambiguous to rename this to IsFileBacked since it's not the module that does the reading.