Index: tools/generate_dump.cc |
diff --git a/tools/generate_dump.cc b/tools/generate_dump.cc |
index f68c17c2a068be8a356d2fb29d41a45711d11106..c68d214ac99d146a2e6e22d5137f30a83726792d 100644 |
--- a/tools/generate_dump.cc |
+++ b/tools/generate_dump.cc |
@@ -182,7 +182,10 @@ int GenerateDumpMain(int argc, char* argv[]) { |
} |
#elif defined(OS_WIN) |
ProcessSnapshotWin process_snapshot; |
- if (!process_snapshot.Initialize(process.get())) { |
+ if (!process_snapshot.Initialize(process.get(), |
+ options.suspend |
+ ? ProcessSuspensionState::kSuspended |
+ : ProcessSuspensionState::kRunning)) { |
return EXIT_FAILURE; |
} |
#endif // OS_MACOSX |