Skip to main content
gamedev.net
🔒 Locked

Debugging ! How do I debug GBA programs?

Started by LeoMaheo Jun 4, 2002 at 6:24 PM 1 replies 1.3k views
Original Post
LeoMaheo
LeoMaheo
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 )
I like to write games.. and to do real sports.
LeoMaheo
LeoMaheo
Well, I''ve solved the problem now...
I use GDB-Insight and "remote-TCP-link" it to VBA, if someone wants to know. Took a while to find out how to do...
I like to write games.. and to do real sports.
nick316
nick316
.

[edited by - nick316 on June 16, 2002 5:53:45 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.