compile with flag -DFRAME_POINTERS and also use -g to enable debugging, then you should get a stack track that you can run through
dc-addr2line to figure out the line number the error is occuring on.
-------- Stack Trace (innermost first) ---------
8c01016a
8c0101e0
8c010478
8c010062
-------------- End Stack Trace -----------------
>] dc-addr2line -e asserthnd.elf 8c01016a 8c0101e0 8c010478
/usr/local/home/bard/prj/kos/examples/dreamcast/basic/asserthnd/asserthnd.c:46
/usr/local/home/bard/prj/kos/examples/dreamcast/basic/asserthnd/asserthnd.c:69
/usr/local/home/bard/prj/kos/kernel/arch/dreamcast/kernel/main.c:129
This is from the comments for the asserthnd.c example in KOS. but I believe from the other thread that this should work for your code also.
Try it out, It would be neat to have another debug tool, that has been tested
Troy