Don't set executable file in ObjectFileMachO::LoadCoreFileImages
authorJason Molenda <jason@molenda.com>
Thu, 16 Sep 2021 08:36:56 +0000 (01:36 -0700)
committerJason Molenda <jason@molenda.com>
Thu, 16 Sep 2021 08:38:48 +0000 (01:38 -0700)
commitceded4153245322c45d28068860fb3d8d0a4884d
tree0773fcd0b994ebc8546044a4bd0e846ec405866a
parent9c4a1686d7c487fff8e63fa67e64623eea8986d5
Don't set executable file in ObjectFileMachO::LoadCoreFileImages

When the corefile reader is adding binaries from the "all image
infos" LC_NOTE in a Mach-O corefile, it would detect if the binary
being added was an executable binary and set it as the Target's
executable binary.  This has the side effect of clearing the Target's
image list, so if the executable was in the middle of the all image
infos, the initial images would be dropped.  There's no need to set
the executable binary in the Target for these corefile processes,
so instead of doing multiple passes over the list to find the
executable, I'm dropping that.
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp