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

Side by Side Diff: snapshot/mac/process_snapshot_mac.h

Issue 1050313003: Handle EXC_RESOURCE and EXC_GUARD exceptions properly (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Better logging Created 5 years, 8 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
« no previous file with comments | « snapshot/mac/exception_snapshot_mac.cc ('k') | snapshot/mac/process_snapshot_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 //! 62 //!
63 //! This populates the data to be returned by Exception(). The parameters may 63 //! This populates the data to be returned by Exception(). The parameters may
64 //! be passed directly through from a Mach exception handler. 64 //! be passed directly through from a Mach exception handler.
65 //! 65 //!
66 //! This method must not be called until after a successful call to 66 //! This method must not be called until after a successful call to
67 //! Initialize(). 67 //! Initialize().
68 //! 68 //!
69 //! \return `true` if the exception information could be initialized, `false` 69 //! \return `true` if the exception information could be initialized, `false`
70 //! otherwise with an appropriate message logged. When this method returns 70 //! otherwise with an appropriate message logged. When this method returns
71 //! `false`, the ProcessSnapshotMac object’s validity remains unchanged. 71 //! `false`, the ProcessSnapshotMac object’s validity remains unchanged.
72 bool InitializeException(thread_t exception_thread, 72 bool InitializeException(exception_behavior_t behavior,
73 thread_t exception_thread,
73 exception_type_t exception, 74 exception_type_t exception,
74 const mach_exception_data_type_t* code, 75 const mach_exception_data_type_t* code,
75 mach_msg_type_number_t code_count, 76 mach_msg_type_number_t code_count,
76 thread_state_flavor_t flavor, 77 thread_state_flavor_t flavor,
77 const natural_t* state, 78 const natural_t* state,
78 mach_msg_type_number_t state_count); 79 mach_msg_type_number_t state_count);
79 80
80 //! \brief Sets the value to be returned by ReportID(). 81 //! \brief Sets the value to be returned by ReportID().
81 //! 82 //!
82 //! On Mac OS X, the crash report ID is under the control of the snapshot 83 //! On Mac OS X, the crash report ID is under the control of the snapshot
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 std::map<std::string, std::string> annotations_simple_map_; 143 std::map<std::string, std::string> annotations_simple_map_;
143 timeval snapshot_time_; 144 timeval snapshot_time_;
144 InitializationStateDcheck initialized_; 145 InitializationStateDcheck initialized_;
145 146
146 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac); 147 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac);
147 }; 148 };
148 149
149 } // namespace crashpad 150 } // namespace crashpad
150 151
151 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_ 152 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_
OLDNEW
« no previous file with comments | « snapshot/mac/exception_snapshot_mac.cc ('k') | snapshot/mac/process_snapshot_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698