@@ -720,13 +720,13 @@ func TestStacktrace(t *testing.T) {
720720 locations , err := proc .ThreadStacktrace (p , p .CurrentThread (), 40 )
721721 assertNoError (err , t , "Stacktrace()" )
722722
723- if len (locations ) != len (stacks [i ])+ 2 {
724- t .Fatalf ("Wrong stack trace size %d %d\n " , len (locations ), len (stacks [i ])+ 2 )
725- }
726-
727723 t .Logf ("Stacktrace %d:\n " , i )
728724 for i := range locations {
729- t .Logf ("\t %s:%d\n " , locations [i ].Call .File , locations [i ].Call .Line )
725+ t .Logf ("\t %s (%#x) %s:%d\n " , locations [i ].Call .Fn .Name , locations [i ].Call .PC , locations [i ].Call .File , locations [i ].Call .Line )
726+ }
727+
728+ if len (locations ) != len (stacks [i ])+ 2 {
729+ t .Fatalf ("Wrong stack trace size %d %d\n " , len (locations ), len (stacks [i ])+ 2 )
730730 }
731731
732732 for j := range stacks [i ] {
@@ -3193,6 +3193,7 @@ func testDeclLineCount(t *testing.T, p *proc.Target, lineno int, tgtvars []strin
31933193
31943194 assertLineNumber (p , t , lineno , "Program did not continue to correct next location" )
31953195 scope , err := proc .GoroutineScope (p , p .CurrentThread ())
3196+ t .Logf ("scope PC: %#x\n " , scope .PC )
31963197 assertNoError (err , t , fmt .Sprintf ("GoroutineScope (:%d)" , lineno ))
31973198 vars , err := scope .Locals (0 , "" )
31983199 assertNoError (err , t , fmt .Sprintf ("Locals (:%d)" , lineno ))
0 commit comments