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

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

Issue 1133203002: win: Retrieve thread context for x64 (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fix current thread Created 5 years, 7 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 | « no previous file | snapshot/win/process_reader_win.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698