Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: snapshot/mac/process_reader.cc

Issue 651283003: Add crashpad_info, MachOImageAnnotationsReader, and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rebase onto master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/mac/mach_o_image_reader.h ('k') | snapshot/mac/process_types/all.proctype » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/mac/process_reader.cc
diff --git a/snapshot/mac/process_reader.cc b/snapshot/mac/process_reader.cc
index 444af86e2cb4c80e597e387c81262f8f2b0fe178..2c9f417e014519c4a005c8f888a6178f2696c9fd 100644
--- a/snapshot/mac/process_reader.cc
+++ b/snapshot/mac/process_reader.cc
@@ -400,13 +400,14 @@ void ProcessReader::InitializeModules() {
//
// TODO(mark): It may be possible to recover from these situations by looking
// through memory mappings for Mach-O images.
+ //
+ // Continue along when this situation is detected, because even without any
+ // images in infoArray, dyldImageLoadAddress may be set, and it may be
+ // possible to recover some information from dyld.
if (all_image_infos.infoArrayCount == 0) {
LOG(WARNING) << "all_image_infos.infoArrayCount is zero";
- return;
- }
- if (!all_image_infos.infoArray) {
+ } else if (!all_image_infos.infoArray) {
LOG(WARNING) << "all_image_infos.infoArray is nullptr";
- return;
}
std::vector<process_types::dyld_image_info> image_info_vector(
« no previous file with comments | « snapshot/mac/mach_o_image_reader.h ('k') | snapshot/mac/process_types/all.proctype » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698