You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling a C function, line information will be
incorrect if the function call's closing parenthesis
is not on the same line as the last argument. We add
a comment with the line info for the return statement
to guide debuggers to the correct line.
Fixesgolang#49839.
seankhliao
changed the title
Wrong line info for C function calls when closing parenthesis is not on same line as last argument
cmd/cgo: wrong line info for C function calls when closing parenthesis is not on same line as last argument
Nov 29, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Below is as minimal of a program as I could get to reproduce the problem:
main.go
:main.h
:main.c
:What did you expect to see?
When single-stepping with a debugger, I expect to have the debugger highlight the line of code that will be executed next.
What did you see instead?
The debugger will trail behind the actually executed line.
The text was updated successfully, but these errors were encountered: