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

Side by Side Diff: snapshot/win/exception_snapshot_win.h

Issue 1336823002: win x86: Grab bag of restructuring to get tests working on x86-on-x86 (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes2 Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // ExceptionSnapshot: 54 // ExceptionSnapshot:
55 55
56 const CPUContext* Context() const override; 56 const CPUContext* Context() const override;
57 uint64_t ThreadID() const override; 57 uint64_t ThreadID() const override;
58 uint32_t Exception() const override; 58 uint32_t Exception() const override;
59 uint32_t ExceptionInfo() const override; 59 uint32_t ExceptionInfo() const override;
60 uint64_t ExceptionAddress() const override; 60 uint64_t ExceptionAddress() const override;
61 const std::vector<uint64_t>& Codes() const override; 61 const std::vector<uint64_t>& Codes() const override;
62 62
63 private: 63 private:
64 template <class ExceptionRecordType, class ContextType>
65 bool InitializeFromExceptionPointers(
66 const ProcessReaderWin& process_reader,
67 const EXCEPTION_POINTERS& exception_pointers,
68 ContextType* context_record);
69
64 #if defined(ARCH_CPU_X86_FAMILY) 70 #if defined(ARCH_CPU_X86_FAMILY)
65 union { 71 union {
66 CPUContextX86 x86; 72 CPUContextX86 x86;
67 CPUContextX86_64 x86_64; 73 CPUContextX86_64 x86_64;
68 } context_union_; 74 } context_union_;
69 #endif 75 #endif
70 CPUContext context_; 76 CPUContext context_;
71 std::vector<uint64_t> codes_; 77 std::vector<uint64_t> codes_;
72 uint64_t thread_id_; 78 uint64_t thread_id_;
73 uint64_t exception_address_; 79 uint64_t exception_address_;
74 uint32_t exception_flags_; 80 uint32_t exception_flags_;
75 DWORD exception_code_; 81 DWORD exception_code_;
76 InitializationStateDcheck initialized_; 82 InitializationStateDcheck initialized_;
77 83
78 DISALLOW_COPY_AND_ASSIGN(ExceptionSnapshotWin); 84 DISALLOW_COPY_AND_ASSIGN(ExceptionSnapshotWin);
79 }; 85 };
80 86
81 } // namespace internal 87 } // namespace internal
82 } // namespace crashpad 88 } // namespace crashpad
83 89
84 #endif // CRASHPAD_SNAPSHOT_WIN_EXCEPTION_SNAPSHOT_WIN_H_ 90 #endif // CRASHPAD_SNAPSHOT_WIN_EXCEPTION_SNAPSHOT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698