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

Unified Diff: snapshot/win/thread_snapshot_win.cc

Issue 1349313003: win: support x64 reading x86 (wow64) (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/win/process_reader_win_test.cc ('k') | util/util_test.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/thread_snapshot_win.cc
diff --git a/snapshot/win/thread_snapshot_win.cc b/snapshot/win/thread_snapshot_win.cc
index 7524e455bbffa977b9aca63d0f229524b86ef320..ce4b309b9d97972fa529be6ac7383e546c2f4139 100644
--- a/snapshot/win/thread_snapshot_win.cc
+++ b/snapshot/win/thread_snapshot_win.cc
@@ -41,20 +41,16 @@ bool ThreadSnapshotWin::Initialize(
if (process_reader->Is64Bit()) {
context_.architecture = kCPUArchitectureX86_64;
context_.x86_64 = &context_union_.x86_64;
- InitializeX64Context(process_reader_thread.context, context_.x86_64);
+ InitializeX64Context(process_reader_thread.context.native, context_.x86_64);
} else {
context_.architecture = kCPUArchitectureX86;
context_.x86 = &context_union_.x86;
- InitializeX86Context(
- *reinterpret_cast<const WOW64_CONTEXT*>(&process_reader_thread.context),
- context_.x86);
+ InitializeX86Context(process_reader_thread.context.wow64, context_.x86);
}
#else
context_.architecture = kCPUArchitectureX86;
context_.x86 = &context_union_.x86;
- InitializeX86Context(
- *reinterpret_cast<const CONTEXT*>(&process_reader_thread.context),
- context_.x86);
+ InitializeX86Context(process_reader_thread.context.native, context_.x86);
#endif // ARCH_CPU_X86_64
INITIALIZATION_STATE_SET_VALID(initialized_);
« no previous file with comments | « snapshot/win/process_reader_win_test.cc ('k') | util/util_test.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698