There's still an issue with getting the entry value, but the rest looks
like it's working properly...
set test "cast-scope"
set ::result_string {function direct: {._M_dataplus={._M_p="Hello World!"}}
function cast: {._M_dataplus={._M_p="Hello World!"}}
+statement direct: {._M_dataplus={._M_p="Hello World!"}}
+statement cast: {._M_dataplus={._M_p="Hello World!"}}
mark cast: {._M_dataplus={._M_p="Hello World!"}}
}
println("function cast: ", @cast($str, "std::string")$$)
}
+probe process("cast-scope.exe").statement("length@cast-scope.cxx+1")
+{
+ println("statement direct: ", $str$$)
+ println("statement cast: ", @cast($str, "std::string")$$)
+}
+
probe process("cast-scope.exe").mark("length")
{
println("mark cast: ", @cast($arg1, "std::string")$$)