File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,26 @@ public DkmStackWalkFrame PmipStackFrame()
30
30
var ip = $ "0x{ _frame . InstructionAddress . CPUInstructionPart . InstructionPointer : X} ";
31
31
var call = $ "((char*(*)(void*)){ pmipFunction . PmipFunction } )((void*){ ip } )";
32
32
33
- var result = "" ;
33
+ var result = "<ERROR> " ;
34
34
var isNull = true ;
35
35
36
36
var eval = EvaluateExpression ( call , r =>
37
37
{
38
38
isNull = r . Address . InstructionAddress . CPUInstructionPart . InstructionPointer == 0 ;
39
- result = r . Value ?? "<ERROR>" ;
39
+ if ( r . Value != null )
40
+ {
41
+ try
42
+ {
43
+ int afterBeginQuote = r . Value . IndexOf ( "\" " , StringComparison . Ordinal ) + 1 ;
44
+ int beforeEndQuote = r . Value . Length - 1 ;
45
+ result = r . Value . Substring ( afterBeginQuote , beforeEndQuote - afterBeginQuote ) ;
46
+ }
47
+ catch ( Exception )
48
+ {
49
+ }
50
+
51
+ }
52
+
40
53
} ) ;
41
54
42
55
if ( ! eval || isNull )
You can’t perform that action at this time.
0 commit comments