[lldb] Use value_or instead of getValueOr (NFC)
[lldb] Add gnu-debuglink support for Windows PE/COFFThe specification of gnu-debuglink can be found at:https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.htmlThe file CRC or the CRC
[lldb] Add gnu-debuglink support for Windows PE/COFFThe specification of gnu-debuglink can be found at:https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.htmlThe file CRC or the CRC value from the .gnu_debuglink section is nowused to calculate the module UUID as a fallback, to allow verifying thatthe debug object does match the executable. Note that if a CodeViewbuild id exists, it still takes precedence. This works even for MinGWbuilds because LLD writes a synthetic CodeView build id which does notget stripped from the debug object.The `Minidump/Windows/find-module` test also needs a fix by adding aCodeView record to the exe to match the one in the minidump, otherwiseit fails due to the new UUID calculated from the file CRC.Fixes https://github.com/llvm/llvm-project/issues/54344Reviewed By: DavidSpickettDifferential Revision: https://reviews.llvm.org/D126367
show more ...