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

Unified Diff: util/win/process_structs.h

Issue 1364803004: win: Save contents of TEBs allowing !teb and !gle to work in windbg (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@dump-without-crashing
Patch Set: rebase 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/thread_snapshot_win.cc ('K') | « snapshot/win/thread_snapshot_win.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 79f6515259c4bb13c29564749bd329e2f3bfcf6e..f082d5a9cb43167c3d14d43be01ad2a4a4f19fb7 100644
--- a/util/win/process_structs.h
+++ b/util/win/process_structs.h
@@ -309,12 +309,22 @@ struct CLIENT_ID {
};
// This is a partial definition of the TEB, as we do not currently use many
-// fields of it. See http://www.nirsoft.net/kernel_struct/vista/TEB.html.
+// fields of it. See http://www.nirsoft.net/kernel_struct/vista/TEB.html, and
+// the (arch-specific) definition of _TEB in winternl.h.
template <class Traits>
struct TEB {
NT_TIB<Traits> NtTib;
- typename Traits::Pointer EnvironmentPointer;
+ typename Traits::Pointer ProcessEnvironmentBlock;
CLIENT_ID<Traits> ClientId;
+ // Not identical to Reserved2 in winternl's _TEB because we define ClientId.
Mark Mentovai 2015/10/01 20:28:05 Blank before this, and after RemainderOfReserved2.
scottmg 2015/10/01 21:01:07 Done.
+ typename Traits::Pointer RemainderOfReserved2[397];
+ BYTE Reserved3[1952];
+ typename Traits::Pointer TlsSlots[64];
+ BYTE Reserved4[8];
+ typename Traits::Pointer Reserved5[26];
+ typename Traits::Pointer ReservedForOle;
+ typename Traits::Pointer Reserved6[4];
+ typename Traits::Pointer TlsExpansionSlots;
};
// See https://msdn.microsoft.com/en-us/library/gg750724.aspx.
« snapshot/win/thread_snapshot_win.cc ('K') | « snapshot/win/thread_snapshot_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698