From 013d5e14a30c1bcf3c1809d79100db65b3730a0c Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Wed, 22 Mar 2017 21:44:05 -0400 Subject: [PATCH] #include where offsetof() is used Bug: crashpad:30 Change-Id: If23ca9ea3141d3d34dc494aa29a1bd1dc8f83130 Reviewed-on: https://chromium-review.googlesource.com/458079 Reviewed-by: Scott Graham --- minidump/minidump_module_writer.cc | 2 ++ minidump/minidump_module_writer_test.cc | 1 + minidump/test/minidump_writable_test_util.cc | 2 ++ snapshot/cpu_context.cc | 1 + snapshot/cpu_context_test.cc | 1 + snapshot/mac/cpu_context_mac.cc | 1 + snapshot/mac/process_types/custom.cc | 1 + snapshot/mac/system_snapshot_mac.cc | 1 + snapshot/win/cpu_context_win.cc | 1 + snapshot/win/pe_image_reader.cc | 1 + snapshot/win/process_snapshot_win.cc | 2 ++ util/file/file_writer.cc | 1 + util/mach/notify_server_test.cc | 2 ++ util/misc/uuid.cc | 1 + util/win/process_info.cc | 1 + util/win/registration_protocol_win.cc | 1 + util/win/scoped_process_suspend.cc | 1 + util/win/scoped_process_suspend_test.cc | 1 + 18 files changed, 22 insertions(+) diff --git a/minidump/minidump_module_writer.cc b/minidump/minidump_module_writer.cc index f74a2a70..8fdda897 100644 --- a/minidump/minidump_module_writer.cc +++ b/minidump/minidump_module_writer.cc @@ -14,6 +14,8 @@ #include "minidump/minidump_module_writer.h" +#include + #include #include diff --git a/minidump/minidump_module_writer_test.cc b/minidump/minidump_module_writer_test.cc index f5484744..04b8b263 100644 --- a/minidump/minidump_module_writer_test.cc +++ b/minidump/minidump_module_writer_test.cc @@ -14,6 +14,7 @@ #include "minidump/minidump_module_writer.h" +#include #include #include diff --git a/minidump/test/minidump_writable_test_util.cc b/minidump/test/minidump_writable_test_util.cc index 66c0591d..49ff1720 100644 --- a/minidump/test/minidump_writable_test_util.cc +++ b/minidump/test/minidump_writable_test_util.cc @@ -14,6 +14,8 @@ #include "minidump/test/minidump_writable_test_util.h" +#include + #include #include "base/strings/string16.h" diff --git a/snapshot/cpu_context.cc b/snapshot/cpu_context.cc index c3887a2c..5c964480 100644 --- a/snapshot/cpu_context.cc +++ b/snapshot/cpu_context.cc @@ -14,6 +14,7 @@ #include "snapshot/cpu_context.h" +#include #include #include "base/logging.h" diff --git a/snapshot/cpu_context_test.cc b/snapshot/cpu_context_test.cc index ffc18cfe..6b94871b 100644 --- a/snapshot/cpu_context_test.cc +++ b/snapshot/cpu_context_test.cc @@ -14,6 +14,7 @@ #include "snapshot/cpu_context.h" +#include #include #include diff --git a/snapshot/mac/cpu_context_mac.cc b/snapshot/mac/cpu_context_mac.cc index 8dca246c..c91e3318 100644 --- a/snapshot/mac/cpu_context_mac.cc +++ b/snapshot/mac/cpu_context_mac.cc @@ -14,6 +14,7 @@ #include "snapshot/mac/cpu_context_mac.h" +#include #include #include "base/logging.h" diff --git a/snapshot/mac/process_types/custom.cc b/snapshot/mac/process_types/custom.cc index 33e3a7ec..c896ebf6 100644 --- a/snapshot/mac/process_types/custom.cc +++ b/snapshot/mac/process_types/custom.cc @@ -14,6 +14,7 @@ #include "snapshot/mac/process_types.h" +#include #include #include diff --git a/snapshot/mac/system_snapshot_mac.cc b/snapshot/mac/system_snapshot_mac.cc index b65a9e08..135fe98e 100644 --- a/snapshot/mac/system_snapshot_mac.cc +++ b/snapshot/mac/system_snapshot_mac.cc @@ -14,6 +14,7 @@ #include "snapshot/mac/system_snapshot_mac.h" +#include #include #include #include diff --git a/snapshot/win/cpu_context_win.cc b/snapshot/win/cpu_context_win.cc index cc66e1cb..1a76c6d9 100644 --- a/snapshot/win/cpu_context_win.cc +++ b/snapshot/win/cpu_context_win.cc @@ -14,6 +14,7 @@ #include "snapshot/win/cpu_context_win.h" +#include #include #include diff --git a/snapshot/win/pe_image_reader.cc b/snapshot/win/pe_image_reader.cc index f7e8e51d..342021a6 100644 --- a/snapshot/win/pe_image_reader.cc +++ b/snapshot/win/pe_image_reader.cc @@ -14,6 +14,7 @@ #include "snapshot/win/pe_image_reader.h" +#include #include #include diff --git a/snapshot/win/process_snapshot_win.cc b/snapshot/win/process_snapshot_win.cc index 11e83145..7a18dbef 100644 --- a/snapshot/win/process_snapshot_win.cc +++ b/snapshot/win/process_snapshot_win.cc @@ -14,6 +14,8 @@ #include "snapshot/win/process_snapshot_win.h" +#include + #include #include "base/logging.h" diff --git a/util/file/file_writer.cc b/util/file/file_writer.cc index a8d92566..13ac6cf5 100644 --- a/util/file/file_writer.cc +++ b/util/file/file_writer.cc @@ -15,6 +15,7 @@ #include "util/file/file_writer.h" #include +#include #include #include diff --git a/util/mach/notify_server_test.cc b/util/mach/notify_server_test.cc index 445e35bf..b0ef4a35 100644 --- a/util/mach/notify_server_test.cc +++ b/util/mach/notify_server_test.cc @@ -14,6 +14,8 @@ #include "util/mach/notify_server.h" +#include + #include "base/compiler_specific.h" #include "base/mac/scoped_mach_port.h" #include "gmock/gmock.h" diff --git a/util/misc/uuid.cc b/util/misc/uuid.cc index d4345a8a..ac2468c6 100644 --- a/util/misc/uuid.cc +++ b/util/misc/uuid.cc @@ -19,6 +19,7 @@ #include "util/misc/uuid.h" #include +#include #include #include diff --git a/util/win/process_info.cc b/util/win/process_info.cc index 2e285b8b..cb2051c0 100644 --- a/util/win/process_info.cc +++ b/util/win/process_info.cc @@ -14,6 +14,7 @@ #include "util/win/process_info.h" +#include #include #include diff --git a/util/win/registration_protocol_win.cc b/util/win/registration_protocol_win.cc index e5cbd8d0..87c45748 100644 --- a/util/win/registration_protocol_win.cc +++ b/util/win/registration_protocol_win.cc @@ -14,6 +14,7 @@ #include "util/win/registration_protocol_win.h" +#include #include #include "base/logging.h" diff --git a/util/win/scoped_process_suspend.cc b/util/win/scoped_process_suspend.cc index fc75ce02..f07acc3c 100644 --- a/util/win/scoped_process_suspend.cc +++ b/util/win/scoped_process_suspend.cc @@ -14,6 +14,7 @@ #include "util/win/scoped_process_suspend.h" +#include #include #include "util/win/nt_internals.h" diff --git a/util/win/scoped_process_suspend_test.cc b/util/win/scoped_process_suspend_test.cc index adddfe27..f770456e 100644 --- a/util/win/scoped_process_suspend_test.cc +++ b/util/win/scoped_process_suspend_test.cc @@ -14,6 +14,7 @@ #include "util/win/scoped_process_suspend.h" +#include #include #include