OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 namespace crashpad { | 27 namespace crashpad { |
28 | 28 |
29 //! \brief Accesses information about another process, identified by a HANDLE. | 29 //! \brief Accesses information about another process, identified by a HANDLE. |
30 class ProcessReaderWin { | 30 class ProcessReaderWin { |
31 public: | 31 public: |
32 //! \brief Contains information about a thread that belongs to a process. | 32 //! \brief Contains information about a thread that belongs to a process. |
33 struct Thread { | 33 struct Thread { |
34 Thread(); | 34 Thread(); |
35 ~Thread() {} | 35 ~Thread() {} |
36 | 36 |
| 37 CONTEXT context; |
37 uint64_t id; | 38 uint64_t id; |
38 WinVMAddress teb; | 39 WinVMAddress teb; |
39 WinVMAddress stack_region_address; | 40 WinVMAddress stack_region_address; |
40 WinVMSize stack_region_size; | 41 WinVMSize stack_region_size; |
41 uint32_t suspend_count; | 42 uint32_t suspend_count; |
42 uint32_t priority_class; | 43 uint32_t priority_class; |
43 uint32_t priority; | 44 uint32_t priority; |
44 }; | 45 }; |
45 | 46 |
46 ProcessReaderWin(); | 47 ProcessReaderWin(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 std::vector<ProcessInfo::Module> modules_; | 98 std::vector<ProcessInfo::Module> modules_; |
98 bool initialized_threads_; | 99 bool initialized_threads_; |
99 InitializationStateDcheck initialized_; | 100 InitializationStateDcheck initialized_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(ProcessReaderWin); | 102 DISALLOW_COPY_AND_ASSIGN(ProcessReaderWin); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace crashpad | 105 } // namespace crashpad |
105 | 106 |
106 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_READER_WIN_H_ | 107 #endif // CRASHPAD_SNAPSHOT_WIN_PROCESS_READER_WIN_H_ |
OLD | NEW |