Index: minidump/minidump_context.h |
diff --git a/minidump/minidump_context.h b/minidump/minidump_context.h |
index 9da4c44b534644653548d7f1686de1223d9cde7f..46f53cb2e45263087912aa88bac319f00e51dfea 100644 |
--- a/minidump/minidump_context.h |
+++ b/minidump/minidump_context.h |
@@ -18,6 +18,7 @@ |
#include <stdint.h> |
#include "snapshot/cpu_context.h" |
+#include "util/misc/struct_pack.h" |
#include "util/numeric/int128.h" |
namespace crashpad { |
@@ -187,7 +188,7 @@ struct MinidumpContextX86 { |
CPUContextX86::Fxsave fxsave; |
}; |
-//! \brief x86_64-specifc flags for MinidumpContextAMD64::context_flags. |
+//! \brief x86_64-specific flags for MinidumpContextAMD64::context_flags. |
enum MinidumpContextAMD64Flags : uint32_t { |
//! \brief Identifies the context structure as x86_64. This is the same as |
//! `CONTEXT_AMD64` on Windows for this architecture. |
@@ -253,7 +254,7 @@ enum MinidumpContextAMD64Flags : uint32_t { |
//! normally alias `dr6` and `dr7`, respectively. See Intel Software |
//! Developer’s Manual, Volume 3B: System Programming, Part 2 (253669-052), |
//! 17.2.2 “Debug Registers DR4 and DR5”. |
-struct __attribute__((aligned(16))) MinidumpContextAMD64 { |
+PACK_AND_ALIGN_16(struct MinidumpContextAMD64 { |
Mark Mentovai
2015/02/02 22:10:28
This may make it difficult for Doxygen to see the
scottmg
2015/02/02 22:31:45
Yeah, my ctags doesn't like it much either.
Now t
Mark Mentovai
2015/02/02 22:57:21
Ugly as it is, I think I prefer what you’ve got al
|
//! \brief Register parameter home address. |
//! |
//! On Windows, this field may contain the “home” address (on-stack, in the |
@@ -336,7 +337,7 @@ struct __attribute__((aligned(16))) MinidumpContextAMD64 { |
uint64_t last_exception_to_rip; |
uint64_t last_exception_from_rip; |
//! \} |
-}; |
+};) |
Mark Mentovai
2015/02/02 22:10:28
The ;s should probably be outside the )s.
scottmg
2015/02/02 22:31:45
Done.
|
} // namespace crashpad |