| Index: snapshot/win/thread_snapshot_win.cc
|
| diff --git a/snapshot/win/thread_snapshot_win.cc b/snapshot/win/thread_snapshot_win.cc
|
| index 83ad54efc3a59b87f23e9e9be983f88d055aad52..773c4cb0550e4483bede533ca788083358e3646a 100644
|
| --- a/snapshot/win/thread_snapshot_win.cc
|
| +++ b/snapshot/win/thread_snapshot_win.cc
|
| @@ -15,60 +15,12 @@
|
| #include "snapshot/win/thread_snapshot_win.h"
|
|
|
| #include "base/logging.h"
|
| +#include "snapshot/win/cpu_context_win.h"
|
| #include "snapshot/win/process_reader_win.h"
|
|
|
| namespace crashpad {
|
| namespace internal {
|
|
|
| -namespace {
|
| -
|
| -void InitializeX64Context(const CONTEXT& context,
|
| - CPUContextX86_64* out) {
|
| - out->rax = context.Rax;
|
| - out->rbx = context.Rbx;
|
| - out->rcx = context.Rcx;
|
| - out->rdx = context.Rdx;
|
| - out->rdi = context.Rdi;
|
| - out->rsi = context.Rsi;
|
| - out->rbp = context.Rbp;
|
| - out->rsp = context.Rsp;
|
| - out->r8 = context.R8;
|
| - out->r9 = context.R9;
|
| - out->r10 = context.R10;
|
| - out->r11 = context.R11;
|
| - out->r12 = context.R12;
|
| - out->r13 = context.R13;
|
| - out->r14 = context.R14;
|
| - out->r15 = context.R15;
|
| - out->rip = context.Rip;
|
| - out->rflags = context.EFlags;
|
| - out->cs = context.SegCs;
|
| - out->fs = context.SegFs;
|
| - out->gs = context.SegGs;
|
| -
|
| - out->dr0 = context.Dr0;
|
| - out->dr1 = context.Dr1;
|
| - out->dr2 = context.Dr2;
|
| - out->dr3 = context.Dr3;
|
| - // DR4 and DR5 are obsolete synonyms for DR6 and DR7, see
|
| - // http://en.wikipedia.org/wiki/X86_debug_register.
|
| - out->dr4 = context.Dr6;
|
| - out->dr5 = context.Dr7;
|
| - out->dr6 = context.Dr6;
|
| - out->dr7 = context.Dr7;
|
| -
|
| - static_assert(sizeof(out->fxsave) == sizeof(context.FltSave),
|
| - "types must be equivalent");
|
| - memcpy(&out->fxsave, &context.FltSave.ControlWord, sizeof(out->fxsave));
|
| -}
|
| -
|
| -void InitializeX86Context(const CONTEXT& context,
|
| - CPUContextX86* out) {
|
| - CHECK(false) << "TODO(scottmg) InitializeX86Context()";
|
| -}
|
| -
|
| -} // namespace
|
| -
|
| ThreadSnapshotWin::ThreadSnapshotWin()
|
| : ThreadSnapshot(), context_(), stack_(), thread_(), initialized_() {
|
| }
|
|
|