[Lldb-commits] [PATCH] D106584: [lldb] Improve checking of file cache read eligibility for mach-O
Vedant Kumar via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 23 14:45:26 PDT 2021
vsk added a comment.
Hey Augusto, thanks for tackling this, I'm just now slowly paging things in.
Is this a correct statement of the problem: LLDB is failing to disable its file cache optimization when reading writable segments (say, __DATA) from a MachO sourced from the shared cache?
If that's right, then I wonder whether you considered "simply" doing a bounds check on the address? The shared region should be mapped at a fixed virtual range in the debuggee process, and we can determine that range using dyld APIs.
================
Comment at: lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp:7040
+ // from, since offsets may be changed by the shared cache builder.
+ bool contains_split_info = ContainsLoadCommand(LC_SEGMENT_SPLIT_INFO);
+
----------------
Is LC_SEGMENT_SPLIT_INFO present if and only if the MachO is from the shared cache?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106584/new/
https://reviews.llvm.org/D106584
More information about the lldb-commits
mailing list