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

N64 ROM crashes after attaching with gdb-multiarch #1778

Closed
maxgerhardt opened this issue Jan 18, 2025 · 0 comments · Fixed by #1793
Closed

N64 ROM crashes after attaching with gdb-multiarch #1778

maxgerhardt opened this issue Jan 18, 2025 · 0 comments · Fixed by #1793

Comments

@maxgerhardt
Copy link

Describe the bug
A breakage was introduced for the gdb server for Nintendo64. v139 works, starting with v140 up to the latest bleeding edge does not work. When launching Ares with the GDB server turned on (localhost:9123) and a ctest.z64 rom produced by this libdragon example, and the connecting to it with gdb-multiarch ctest.elf, setting a breakpoint at main, continuining to it, and then continuing again will make the ROM crash. This does not happen on Ares v139, where the execution continue normally. This makes debugging N64 games on the latest Ares impossible.

To Reproduce
Steps to reproduce the behavior:

  1. Download and extract ctest.zip
  2. Launch gdb-multiarch within the extracted directory with gdb-multiarch -ex "target extended-remote :9123" -ex "break main" -ex "continue" build/ctest.elf
  3. Quickly after that, launch the latest Ares with ./ares ctest.z64
  4. gdb-multiarch should now connect to Ares
  5. Bleeding-Edge Ares crashes instantly, v141 & v140 will crash after a "continue", v139 will work normally

Expected behavior

After hitting the breakpoint in main() and hitting continue, the game should continue normally and not crash.

Screenshots
Ares bleeding-edge version after the "continue"

Image

Ares v141 after the "continue"

Image

Ares v139 after the "continue"

Image

Additional context
Working with Ubuntu 24.10, GDB-multiarch 15.1 (sudo apt install gdb-multiarch).

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

Successfully merging a pull request may close this issue.

1 participant