File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ func ProgramEntrypoint(arch string) func(function string) bool {
2424 function == "runtime.systemstack" ||
2525 function == "runtime.gopanic" ||
2626 function == "runtime.chanrecv" ||
27- function == "runtime.startm" || // 32 bit specific
28- function == "runtime.sysAlloc" // // 32 bit specific
27+ function == "runtime.startm" ||
28+ function == "runtime.sysAlloc" ||
29+ function == "runtime.chansend"
2930 }
3031 case "mips64" :
3132 return func (function string ) bool {
@@ -40,7 +41,10 @@ func ProgramEntrypoint(arch string) func(function string) bool {
4041 function == "runtime.morestack" ||
4142 function == "runtime.systemstack" ||
4243 function == "runtime.gopanic" ||
43- function == "runtime.chanrecv"
44+ function == "runtime.chanrecv" ||
45+ function == "runtime.startm" ||
46+ function == "runtime.sysAlloc" ||
47+ function == "runtime.chansend"
4448 }
4549 }
4650 return func (function string ) bool {
Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ func TraceAllAsmCaller(
9191 var visit func (segment asmparser.Segment )
9292
9393 visit = func (segment asmparser.Segment ) {
94+ if len (sources ) >= 20 { // protect for infinite searching
95+ return
96+ }
9497 if seen [segment ] {
9598 return
9699 }
You can’t perform that action at this time.
0 commit comments