Sometimes, it can happen that a crash report has null images in its list
of used binaries. This manifests like such:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
When fetching debug symbols to symbolicate the crashlog stackframe,
having null images causes dsymForUUID to hang for few seconds.
This patch addresses that by skipping null images from being load by the
scripted process.
rdar://97419487
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
One of the things I noticed working on https://reviews.llvm.org/D130813 was that our UUID class's IsValid() method detects if the object has any bytes or not, and I wonder if it should check for a null uuid value (all zeroes) and return IsValid()==false in that case. In my patch, I was reading a UUID out of a corefile and I needed to check if it was a null uuid before I copied the bytes into a UUID object to work around it.