How to debug a SDL program?

Hello,
I tried to debug my SDL program with gdb, I compiled my project with the
-g option. But unfortunality gdb wouldn’t work because I use also the
SDL threads.

Is any way to get work it?

My problem:
GNU gdb 5.3-debian
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for
details.
This GDB was configured as “i386-linux”…
(gdb) r
Starting program: /home/saf/pv/src/pv
Error while reading shared library symbols:
Cannot find new threads: capability not available
Cannot find user-level thread for LWP 13695: capability not available
(gdb)–
saf at http://TrashMail.net/
No more spam, free disposable email addresses.

I tried a multithreaded program of mine under GDB, and it ran fine. Perhaps
you need to upgrade gdb, and/or recompile it with thread support? I also
wonder if gdb not supporting threads might point to some deeper
thread-related issue on your system.On Wednesday 11 February 2004 20:28, saf [TrashMail.net] wrote:

Hello,
I tried to debug my SDL program with gdb, I compiled my project with the
-g option. But unfortunality gdb wouldn’t work because I use also the
SDL threads.

Is any way to get work it?