Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Function call does not seem to work when calling function with the same arguments after the code calls it #1590
Then, run the debugger as usual against the
When the breakpoint hits, invoke the following function call
However, change the commands above to the following sequence and then the function call will work (the debugger is stopped at line 35):
From my understanding, this comes from the Go runtime itself, and this does not seem to be fixed in Go 1.13 either, but please confirm this is the case and I'll follow-up with the Go team in a separate ticket.
It doesn't have anything to do with whether the function was already called or not: some lines of code (really: some instructions) are not safe points and functions can't be called there, because the garbage collector wouldn't be able to deal with the resulting stack frame. Nothing we can do about it.