Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't debug via go-delve on M1 MacOS. (missing rodata struct member) #373

Closed
Rocco-Gossmann opened this issue Apr 14, 2024 · 1 comment
Closed

Comments

@Rocco-Gossmann
Copy link

Hi,

I've encountered an issue on M1 Macs (MacOS) while trying to debug a project that uses Raylib-Go.
Debugging is done via the "delve" debugger.

Running the Project without debugger works fine. (Windows open, Inputs get registered, no problems at all)
But the Project crashes the "delve" debugger as soon as Raylib-Go gets involved.
All I get is this

failed to find rodata struct

Error.

As long as Go does not require any access to Raylib. the Debugger seems to work fine.

  • XCode CommandLine Tools are installed.
  • raylib-go was installed via:
go get -v -u github.com/gen2brain/raylib-go/raylib

See this Video for a demonstration of the Issue.

2024-04-14_14-58-10.mov
@Rocco-Gossmann
Copy link
Author

On closer inspection, this does not seem to be related to raylib-go alone.
It seems to have more to do with something CGO related and the delve debugger.
The same issue came up in another project of mine that required CGO.

Sorry for bothering. I was a bit to hasty in opening this issue. I don't think you can do much about this.

I've opened an Issue in go-delve. Maybe they can do someing or say, what the issue is.
go-delve/delve#3701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant