ios: Suppress log-if-missing for kSourceVersion intermediate dump key.

It's not required that LC_SOURCE_VERSION be present in every module, and
common for it to be missing. Suppress recording its absence.

Fixed: crashpad:443
Change-Id: Iae10c38c78514e78af6c3176cc809d95a3ae3811
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4294861
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
Justin Cohen 2023-02-27 15:50:39 -05:00 committed by Crashpad LUCI CQ
parent 7a997fb253
commit 9830fbf3b4

View File

@ -51,10 +51,13 @@ bool ModuleSnapshotIOSIntermediateDump::Initialize(
GetDataStringFromMap(image_data, Key::kName, &name_);
GetDataValueFromMap(image_data, Key::kAddress, &address_);
GetDataValueFromMap(image_data, Key::kSize, &size_);
GetDataValueFromMap(image_data, Key::kSourceVersion, &source_version_);
GetDataValueFromMap(image_data, Key::kFileType, &filetype_);
// These keys are often missing.
GetDataValueFromMap(image_data,
Key::kSourceVersion,
&source_version_,
LogMissingDataValueFromMap::kDontLogIfMissing);
GetDataValueFromMap(image_data,
Key::kTimestamp,
&timestamp_,