mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 12:05:21 +08:00
Optimize Next implementation
Once the program detects that we have stepped into another function, we simply calculate the return address and then set a breakpoint and continue to that location, avoiding numerous syscalls.
This commit is contained in:
@ -37,7 +37,7 @@ func testnext() {
|
||||
func main() {
|
||||
runtime.LockOSThread()
|
||||
for {
|
||||
sleepytime()
|
||||
helloworld()
|
||||
testnext()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user