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 > Viewing source in insight-gdb.

#23773 - cosmic4z - Wed Jul 21, 2004 11:19 am

I have recently completely changed the makefile on my project to get Apex Sound System working .. and things seem to be going well so far with that.

However .. I when I use insight-gdb to debug the .elf file .. I cannot view source.

In the Code display drop-down list box the only options that work are:

'Assembly' and 'Mixed'.

(before I made the changes to my makefile, all the options worked fine).

I think it odd that 'Mixed' mode works and displays lines from the C source files OK .. yet it won't do this in 'Source' mode.

I am guessing that the problem is with the .elf file .. that it now has some vital debugging info missing (relating to source files?).

What params should I be passing to GCC (I am using devkitadv) to ensure that I can view source files in insight-gdb?

Thanks i advance,
Jamie.
_________________
Qwak - www.qwak.co.uk | Forum - www.qwak.co.uk/forum/

#23775 - cosmic4z - Wed Jul 21, 2004 11:49 am

UPDATE:

Just tried running insight-gdb and opening my .elf file and it works fine (can view source ok).

It just won't work from my makefile (and connected to visualboy advance sdl).

Maybe I am not invoking the debug environment correctly.

This is the portion of my makefile that invokes insight-gdb / vbasdl.

Code:

RUN_VBASDL      =   /devkitadv/run_vbasdl_temp.bat
GDB_PARAMS      =   /devkitadv/gdb_params_temp.txt

debug: $(TARGET_ELF)
   @echo START d:/games/gba/vbasdl.exe -1 -Gtcp:55555 $(TARGET_BIN) > $(RUN_VBASDL)
   @$(RUN_VBASDL)
   @echo > $(GDB_PARAMS)
   @echo file $(TARGET_ELF) >> $(GDB_PARAMS)
   @echo target remote 127.0.0.1:55555 >> $(GDB_PARAMS)
   @echo load $(TARGET_ELF) >> $(GDB_PARAMS)
   arm-agb-elf-insight --command=$(GDB_PARAMS) $(TARGET_ELF)
   @echo DEBUG COMPLETE.


Any ideas ?
_________________
Qwak - www.qwak.co.uk | Forum - www.qwak.co.uk/forum/

#23778 - cosmic4z - Wed Jul 21, 2004 12:42 pm

PROBLEM SOLVED:

Appologies for clogging up the boards.
_________________
Qwak - www.qwak.co.uk | Forum - www.qwak.co.uk/forum/