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

Ability to load debug info from an external file? #2480

Closed
EvilJagaGenius opened this issue Mar 25, 2022 · 1 comment
Closed

Ability to load debug info from an external file? #2480

EvilJagaGenius opened this issue Mar 25, 2022 · 1 comment

Comments

@EvilJagaGenius
Copy link

I work on a fork of the Goomba Color GB/C emulator for GBA and use mGBA to test my builds. However I don't have a good way to debug it. When I compile, I come out with a .gba and .elf file as per normal, and Goomba Color works by concatenating ROMs to the end of the .gba file. When I try to do the same thing and build a test ROM with the .elf file, the emulator doesn't detect any ROMs.

Would it be possible to add a debugger command to load debug info from an external .elf file, like GDB does with its add-symbol-file and symbol-file commands? Then I could build a working test ROM and have all my function/variable names in the debugger too.

Thanks!

@endrift
Copy link
Member

endrift commented May 2, 2022

It should autoload .elf symbols if there is an .elf in the same directory with the same filename. However, I can add a manual loading command.

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

2 participants