GP2X Segfault When Too Fast


GernotFrisch

Member
Joined
Jan 2, 2007
Messages
445
I'm mixing blitter code with non-blitter code (writing to mmaped memory). My program runs good if it's a bit slow, but when I have nothing to do, it crashed at a point, where I write to mmap'ed memory.
What can it be?
After each blitter code I do a dummy blit to make sure cached data is written.
 
Squidge posted on Feb 18 2007 at 11:25 PM said:
try running it under gdb, and it'll point to where it crashed (line number).

I found the gdb.pge. Must I change something on my executable to be gdb'able? Or is it just gdb.gpe mytest.gpe? Sorry, never used gdb before.
 
Last edited by a moderator:
KungPhoo posted on Feb 19 2007 at 07:41 AM said:
I found the gdb.pge. Must I change something on my executable to be gdb'able? Or is it just gdb.gpe mytest.gpe? Sorry, never used gdb before.
You should build and link with -g option.
 
Last edited by a moderator:
Back
Top