ARM: Fix SOS stack dump command failure (dotnet/coreclr#4774)
authorSaeHie Park <saehie.park@gmail.com>
Sun, 8 May 2016 18:24:26 +0000 (03:24 +0900)
committerMike McLaughlin <mikem@microsoft.com>
Sun, 8 May 2016 18:24:26 +0000 (11:24 -0700)
commit8bf1209f1ea5da417cf909199fe8a0ecdfa5e16d
tree2de1954c07a8f6dde6612ed0c5f1acb156dcd4fe
parenta422bd2656f76130d5b42e6c827997fa38fa3b83
ARM: Fix SOS stack dump command failure (dotnet/coreclr#4774)

Dumping address pointer for 32bit system needs adjusting for current implementation
while it assumes %p argument is 64bit. This patch changes (ULONG64) casting to SOS_PTR()
so that it will be safe for both 64 and 32bit.
This will fix DumpStack and EEStack segmentation fault problem.

Related issue: dotnet/coreclr#4672

Commit migrated from https://github.com/dotnet/coreclr/commit/70cfa355947ed82f7de8a56cac3bd38571cebfa5
12 files changed:
src/coreclr/src/ToolBox/SOS/Strike/disasm.cpp
src/coreclr/src/ToolBox/SOS/Strike/disasmX86.cpp
src/coreclr/src/ToolBox/SOS/Strike/dllsext.cpp
src/coreclr/src/ToolBox/SOS/Strike/eeheap.cpp
src/coreclr/src/ToolBox/SOS/Strike/gchist.cpp
src/coreclr/src/ToolBox/SOS/Strike/gcroot.cpp
src/coreclr/src/ToolBox/SOS/Strike/sildasm.cpp
src/coreclr/src/ToolBox/SOS/Strike/strike.cpp
src/coreclr/src/ToolBox/SOS/Strike/strike.h
src/coreclr/src/ToolBox/SOS/Strike/util.cpp
src/coreclr/src/ToolBox/SOS/Strike/util.h
src/coreclr/src/ToolBox/SOS/Strike/vm.cpp