Archived

This topic is now archived and is closed to further replies.

Debugging ! How do I debug GBA programs?

This topic is 5659 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! Im trying to write a GBA-game. I use the Mappy emulator, but I''ve got no idea of how to do source-level-debugging. How do I compile the .cpp files so Mappy gets some debug information ? I''ve tried with g++ -o main.elf -lm -g main.cpp ml_sprites.cpp objcopy --debugging -O binary main.elf main.gba but this results in : "objcopy: main.elf: no recognized debugging information" I''ve also tried g++ -o main.elf -lm -g -mthumb-interwork main.cpp ml_sprites.cpp objcopy --debugging -O binary main.elf main.gba and "-ggdb" instead of "-g", but nothing works. Can you tell me how I should do to debug my GBA-programs ? How should I compile them? (I use GCC3.0) Thanks (perhaps )

Share this post


Link to post
Share on other sites