[Lldb-commits] [PATCH] D17465: Get register context for the 32-bit process in a WoW64 process minidump.
Adrian McCarthy via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 19 15:49:11 PST 2016
amccarth created this revision.
amccarth added a reviewer: zturner.
amccarth added a subscriber: lldb-commits.
32-bit processes on 64-bit Windows run in a layer called WoW64 (Windows-on-Windows64). If you capture a mini dump of such a process from a 32-bit debugger, you end up with a register context for the 64-bit WoW64 process rather than the 32-bit one you probably care about.
This detects WoW64 by looking to see if there's a module named wow64.dll loaded. For such processes, it then looks in the 64-bit Thread Environment Block (TEB) to locate a copy of the 32-bit CONTEXT record that the plugin needs for the register context.
I'll add a test before submitting this, but it seems to work in my manual experiments.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5866 bytes
Desc: not available
More information about the lldb-commits