gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Debuggers for GBA Development

#8342 - dchartier - Tue Jul 08, 2003 7:42 pm

Hello all,

I installed the devkit, but I can't seem to find even a stand-alone debugger such as gdb in the distribution. What tools are available for debugging our games? Ideally, I'd like something that can run alongside a GBA emulator and allow source-level debugging with single-stepping, breakpoints, watches, and all those bells and whistles. Are there any candidates?

Thanks!

#8351 - tepples - Tue Jul 08, 2003 10:43 pm

Apparently, there's a way to hook up GDB/Insight to VisualBoyAdvance. Start here.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#8357 - funkeejeffou - Tue Jul 08, 2003 11:59 pm

And what about a debugger that uses breakpoints and watches in ASM?

#8367 - Quirky - Wed Jul 09, 2003 7:24 am

Can you not do that right away with insight/gdb? I thought if you compiled your asm file with the -g flag, then open up the .elf and the corresponding .s it would be possible to debug asm files same as .c ones?

#8369 - dchartier - Wed Jul 09, 2003 9:11 am

Sounds great. A couple questions:
    1. What's the easiest way to get Insight GDB up and running? A Google search took me to http://sources.redhat.com/insight/downloads.htm, but all I could find was source code. Are there any pre-built binaries for Windows available online?

    2. Do I need a special version of Insight GDB to work with ARM and the GBA?

Thanks!

#8380 - torne - Wed Jul 09, 2003 12:31 pm

There is a prebuilt ARM Insight for Windows suitable for use with VisualBoyAdvance available on the VBA website.

There is nothing in it which is specific to the GBA at all, it's just the normal ARM GDB build, built under Cygwin to make it run in Windows.

Torne

#8387 - mtkmarcos - Wed Jul 09, 2003 3:19 pm

Mappy isn't a good debugger?

#8390 - Quirky - Wed Jul 09, 2003 4:16 pm

mtkmarcos wrote:
Mappy isn't a good debugger?


VBA is a more accurate emulator and chances are people are more familiar with GDB. Plus my debug enabled .elfs always seem to just hang in mappy...