[Lldb-commits] [PATCH] D157168: [lldb] [mach-o corefiles] If we have LC_NOTE metadata and can't find a binary, don't fall back to an exhaustive scan
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 7 09:16:11 PDT 2023
bulbazord added a comment.
Patch looks good to me, one small suggestion about naming.
================
Comment at: lldb/source/Plugins/Process/mach-core/ProcessMachCore.h:89
void CreateMemoryRegions();
- void LoadBinariesViaMetadata();
+ bool LoadBinariesViaMetadata();
void LoadBinariesViaExhaustiveSearch();
----------------
Since `LoadBinariesViaMetadata` can fail and we now care about the return value, what do you think about the name `TryLoadBinariesViaMetadata`? I think a name that indicates that it may fail to actually load would make it easier to read at a glance.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157168/new/
https://reviews.llvm.org/D157168
More information about the lldb-commits
mailing list