diff --git a/runtime_strip.go b/runtime_strip.go index 51e59cc..ac78644 100644 --- a/runtime_strip.go +++ b/runtime_strip.go @@ -89,8 +89,8 @@ func stripRuntime(filename string, file *ast.File) { case "traceback.go": // only used for printing tracebacks switch x.Name.Name { - case "tracebackdefers", "traceback", "tracebacktrap", "traceback1", - "goroutineheader", "tracebackothers", "tracebackHexdump": + case "tracebackdefers", "printcreatedby", "printcreatedby1", "traceback", "tracebacktrap", "traceback1", "printAncestorTraceback", + "printAncestorTracebackFuncInfo", "goroutineheader", "tracebackothers", "tracebackHexdump", "printCgoTraceback": x.Body.List = nil case "printOneCgoTraceback": x.Body = ah.BlockStmt(ah.ReturnStmt(ah.IntLit(0))) diff --git a/testdata/scripts/tiny.txt b/testdata/scripts/tiny.txt index ff7e853..8b692fb 100644 --- a/testdata/scripts/tiny.txt +++ b/testdata/scripts/tiny.txt @@ -3,7 +3,7 @@ env GOPRIVATE=test/main # Tiny mode garble -tiny build ! binsubstr main$exe 'main.go' 'fmt/print.go' -env GODEBUG='allocfreetrace=1,gcpacertrace=1,gctrace=1,scavenge=1,scavtrace=1,scheddetail=1,schedtrace=10' +env GODEBUG='allocfreetrace=1,gcpacertrace=1,gctrace=1,inittrace=1,scavenge=1,scavtrace=1,scheddetail=1,schedtrace=10' ! exec ./main$exe stderr '^\(0x[\d\w]{6,8},0x[\d\w]{6,8}\)' # interfaces/pointers print correctly # TODO: Make -tiny remove all line information again.