Detecting memory errors

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

Detecting memory errors

Post by kazade »

I'm finding it really hard to debug memory issues when coding for the Dreamcast. I miss my Valgrind!

Does anyone have any tips on how to detect buffer overflows etc.?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: Detecting memory errors

Post by BlueCrab »

It certainly doesn't catch as much as valgrind does, but you could enable all of the memory-related debugging features in include/kos/opts.h (make sure to do a full make clean && make on KOS itself and your own code afterwards).
Post Reply