[mythtv] using gdb with mythtv

John Coiner mythtv-dev@snowman.net
Thu, 07 Nov 2002 01:01:32 -0500


I'm having trouble debugging the 'mythtv' executable with gdb.

I editted 'settings.pro' for debug, did a 'make clean; make; make 
install' and attached gdb...

There are about 10 threads visible to gdb. Each thread shows a stack 
trace that doesn't seem too useful. Like this:

(gdb) where
#0  0x40c075d1 in __libc_nanosleep () at __libc_nanosleep:-1
#1  0x40c324d8 in usleep (useconds=1000)
     at ../sysdeps/unix/sysv/linux/usleep.c:30
#2  0x08052f2f in QShared::ref ()
#3  0x08052e60 in QShared::ref ()
#4  0x40a2310c in pthread_start_thread (arg=0xbf7ffc00) at manager.c:291

It's got some QT lib stuff, and some system lib stuff. What's missing is 
the actual source code being tested...

Also, if I try to set a breakpoint, it barfs:

(gdb) break NuppelVideoRecorder.cpp:1282
No source file named NuppelVideoRecorder.cpp

What am I missing? (It must be something really stupid...)

-- john