Debugging SDL programs on Linux

Get SDL 0.8b from the developer’s page at:
http://www.devolution.com/~slouken/SDL/develop.html

Go to the SDL directory.
make spotless
make debug=true
make

Go to one of the demo directories
make debug=true

Run the program under gdb
gdb

Wait for it to crash, watch what line it crashes at.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Well, I did that, and there are no crashes now. Even the sound works
(which didn’t before).

I also tried compiling without the debug=true, and it worked. Pthread
support is compiled in.

I don’t know what was wrong before, but .8 works fine.

Dave

Sam Lantinga wrote:>

Get SDL 0.8b from the developer’s page at:
http://www.devolution.com/~slouken/SDL/develop.html

Go to the SDL directory.
make spotless
make debug=true
make

Go to one of the demo directories
make debug=true

Run the program under gdb
gdb

Wait for it to crash, watch what line it crashes at.

See ya!
-Sam Lantinga (slouken at devolution.com)


Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/