ARM, SOS: correct IP and SP value in ClrStack command (#5077)
authorSaeHie Park <saehie.park@gmail.com>
Thu, 19 May 2016 16:25:00 +0000 (01:25 +0900)
committerMike McLaughlin <mikem@microsoft.com>
Thu, 19 May 2016 16:25:00 +0000 (09:25 -0700)
This fixes casting 64bit pointer value in 32bit machines
that show wrong IP and SP values in ClrStack command.

Related Issue: #5037

src/ToolBox/SOS/Strike/util.h

index 1e319bf..1c4e811 100644 (file)
@@ -745,7 +745,7 @@ namespace Output
                     if (precision > width)
                         precision = width;
 
-                    ExtOut(leftAlign ? "%-*.*p" : "%*.*p", width, precision, (__int64)mValue);
+                    ExtOut(leftAlign ? "%-*.*p" : "%*.*p", width, precision, SOS_PTR(mValue));
                 }
                 else
                 {