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

Side by Side Diff: snapshot/win/thread_snapshot_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 | « snapshot/win/process_reader_win_test.cc ('k') | snapshot/win/thread_snapshot_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // ThreadSnapshot: 53 // ThreadSnapshot:
54 54
55 const CPUContext* Context() const override; 55 const CPUContext* Context() const override;
56 const MemorySnapshot* Stack() const override; 56 const MemorySnapshot* Stack() const override;
57 uint64_t ThreadID() const override; 57 uint64_t ThreadID() const override;
58 int SuspendCount() const override; 58 int SuspendCount() const override;
59 int Priority() const override; 59 int Priority() const override;
60 uint64_t ThreadSpecificDataAddress() const override; 60 uint64_t ThreadSpecificDataAddress() const override;
61 61
62 private: 62 private:
63 #if defined(ARCH_CPU_X86_FAMILY)
64 union {
65 CPUContextX86 x86;
66 CPUContextX86_64 x86_64;
67 } context_union_;
68 #endif
63 CPUContext context_; 69 CPUContext context_;
64 MemorySnapshotWin stack_; 70 MemorySnapshotWin stack_;
65 ProcessReaderWin::Thread thread_; 71 ProcessReaderWin::Thread thread_;
66 InitializationStateDcheck initialized_; 72 InitializationStateDcheck initialized_;
67 73
68 DISALLOW_COPY_AND_ASSIGN(ThreadSnapshotWin); 74 DISALLOW_COPY_AND_ASSIGN(ThreadSnapshotWin);
69 }; 75 };
70 76
71 } // namespace internal 77 } // namespace internal
72 } // namespace crashpad 78 } // namespace crashpad
73 79
74 #endif // CRASHPAD_SNAPSHOT_WIN_THREAD_SNAPSHOT_WIN_H_ 80 #endif // CRASHPAD_SNAPSHOT_WIN_THREAD_SNAPSHOT_WIN_H_
OLDNEW
« no previous file with comments | « snapshot/win/process_reader_win_test.cc ('k') | snapshot/win/thread_snapshot_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698