Index: minidump/minidump_context_writer.cc |
diff --git a/minidump/minidump_context_writer.cc b/minidump/minidump_context_writer.cc |
index 9b30997d4e89ad5986ccf704bd690d8a74ff2dda..8b3b8901737a8dac5e72b9b9162c474277b8af4f 100644 |
--- a/minidump/minidump_context_writer.cc |
+++ b/minidump/minidump_context_writer.cc |
@@ -160,7 +160,8 @@ void MinidumpContextAMD64Writer::InitializeFromSnapshot( |
context_.cs = context_snapshot->cs; |
context_.fs = context_snapshot->fs; |
context_.gs = context_snapshot->gs; |
- context_.eflags = context_snapshot->rflags; |
+ // The top 32 bits of rflags are reserved/unused. |
+ context_.eflags = static_cast<uint32_t>(context_snapshot->rflags); |
context_.dr0 = context_snapshot->dr0; |
context_.dr1 = context_snapshot->dr1; |
context_.dr2 = context_snapshot->dr2; |