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

Unified Diff: util/win/process_structs.h

Issue 1349313003: win: support x64 reading x86 (wow64) (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . 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
« snapshot/win/process_reader_win.cc ('K') | « util/win/process_info_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/process_structs.h
diff --git a/util/win/process_structs.h b/util/win/process_structs.h
index 7f4e4f59e77e7f3561f37aa091f7ab365f89194e..5b8985077fe53d6cfde0887e1619be830fc236b4 100644
--- a/util/win/process_structs.h
+++ b/util/win/process_structs.h
@@ -283,7 +283,11 @@ struct PEB {
template <class Traits>
struct NT_TIB {
- typename Traits::Pointer ExceptionList;
+ union {
+ typename Traits::Pointer ExceptionList;
+ // See https://msdn.microsoft.com/en-us/library/dn424783.aspx.
Mark Mentovai 2015/09/18 15:44:07 But the rest of NT_TIB isn’t right for WoW64 eithe
scottmg 2015/09/18 19:45:26 I'm not sure if it is. I think it probably has the
Mark Mentovai 2015/09/18 22:10:50 scottmg wrote:
+ typename Traits::Pointer Wow64Teb;
+ };
typename Traits::Pointer StackBase;
typename Traits::Pointer StackLimit;
typename Traits::Pointer SubSystemTib;
@@ -417,7 +421,7 @@ struct SYSTEM_PROCESS_INFORMATION {
template <class Traits>
struct THREAD_BASIC_INFORMATION {
union {
- NTSTATUS ExitStatus;
+ LONG ExitStatus;
typename Traits::Pad padding_for_x64_0;
};
typename Traits::Pointer TebBaseAddress;
@@ -427,6 +431,12 @@ struct THREAD_BASIC_INFORMATION {
LONG BasePriority;
};
+template <class Traits>
+struct EXCEPTION_POINTERS {
+ typename Traits::Pointer ExceptionRecord;
+ typename Traits::Pointer ContextRecord;
+};
+
#pragma pack(pop)
//! \}
« snapshot/win/process_reader_win.cc ('K') | « util/win/process_info_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698