| Index: snapshot/win/memory_map_region_snapshot_win.h
|
| diff --git a/snapshot/mac/mach_o_image_annotations_reader_test_module_crashy_initializer.cc b/snapshot/win/memory_map_region_snapshot_win.h
|
| similarity index 52%
|
| copy from snapshot/mac/mach_o_image_annotations_reader_test_module_crashy_initializer.cc
|
| copy to snapshot/win/memory_map_region_snapshot_win.h
|
| index 2ba9bee043af4a606c8d6c90bb8a2b73b5867edb..725c12565e941492d1ecd2f5a9568df1537667d6 100644
|
| --- a/snapshot/mac/mach_o_image_annotations_reader_test_module_crashy_initializer.cc
|
| +++ b/snapshot/win/memory_map_region_snapshot_win.h
|
| @@ -12,20 +12,26 @@
|
| // See the License for the specific language governing permissions and
|
| // limitations under the License.
|
|
|
| +#ifndef CRASHPAD_SNAPSHOT_WIN_MEMORY_MAP_REGION_SNAPSHOT_WIN_H_
|
| +#define CRASHPAD_SNAPSHOT_WIN_MEMORY_MAP_REGION_SNAPSHOT_WIN_H_
|
| +
|
| +#include "snapshot/memory_map_region_snapshot.h"
|
| +
|
| namespace crashpad {
|
| -namespace test {
|
| -namespace {
|
| +namespace internal {
|
|
|
| -class CrashyClass {
|
| +class MemoryMapRegionSnapshotWin : public MemoryMapRegionSnapshot {
|
| public:
|
| - CrashyClass() {
|
| - __builtin_trap();
|
| - }
|
| -};
|
| + explicit MemoryMapRegionSnapshotWin(const MEMORY_BASIC_INFORMATION64& mbi);
|
| + ~MemoryMapRegionSnapshotWin() override;
|
|
|
| -// __attribute__((used)) keeps the dead code stripper away.
|
| -__attribute__((used)) CrashyClass g_crashy_object;
|
| + virtual const MINIDUMP_MEMORY_INFO& AsMinidumpMemoryInfo() const override;
|
|
|
| -} // namespace
|
| -} // namespace test
|
| + private:
|
| + MINIDUMP_MEMORY_INFO memory_info_;
|
| +};
|
| +
|
| +} // namespace internal
|
| } // namespace crashpad
|
| +
|
| +#endif // CRASHPAD_SNAPSHOT_WIN_MEMORY_MAP_REGION_SNAPSHOT_WIN_H_
|
|
|