Chris Cannam wrote:
On Thursday 09 Feb 2006 18:09, Emanuel Rumpf wrote:
Chris Cannam wrote:
assert(0);
This had no effect.
Oh, of course, it's that NDEBUG flag. Sorry. Try
abort();
Is it possible to run rg from the RGbuild directory, without first
installing it?
How would I debug it using kdbg?
Compiling it with scons debug=full, setting the breakpoint in
MappedStudio.cpp and starting it through kdb didn't seem to work / be
enough.
Now I have used this, so that rg didn't stop after being started:
tti += 1;
if (tti == 3 ){
abort();
}
...and got this output when opening the file:
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1234393408 (LWP 6323)]
[New Thread -1236059216 (LWP 6325)]
[KCrash handler]
#3 0xb6dee7a7 in raise () from /lib/tls/libc.so.6
#4 0xb6df004b in abort () from /lib/tls/libc.so.6
#5 0x080d50f0 in ~MappedPluginSlot (this=0x8293068)
at RGbuild/sound/MappedStudio.cpp:1279
#6 0x080d4167 in Rosegarden::MappedStudio::clear (this=0x8236968)
at RGbuild/sound/MappedStudio.cpp:583
#7 0x0805f137 in RosegardenSequencerApp::clearStudio (this=0x822f418)
at RGbuild/sequencer/rosegardensequencer.cpp:1563
#8 0x080778e7 in RosegardenSequencerIface::process (this=0x822f5dc,
fun=@0xbfa83334, data=@0xbfa8332c, replyType=@0xbfa83324,
replyData=@0xbfa8331c)
at RGbuild/sequencer/rosegardensequenceriface_skel.cpp:703
#9 0xb6da93e5 in DCOPClient::receive () from /usr/lib/libDCOP.so.4
#10 0xb6daaa6b in DCOPClient::find () from /usr/lib/libDCOP.so.4
#11 0xb6dab345 in DCOPClient::find () from /usr/lib/libDCOP.so.4
#12 0xb6db7d4e in KDE_IceProcessMessages () from /usr/lib/libDCOP.so.4
#13 0xb6da378e in DCOPClient::processSocketData () from /usr/lib/libDCOP.so.4
#14 0xb6dab704 in DCOPClient::qt_invoke () from /usr/lib/libDCOP.so.4
#15 0xb77bfb57 in QObject::activate_signal ()
from /usr/share/qt3/lib/libqt-mt.so.3
#16 0xb77c04a5 in QObject::activate_signal ()
from /usr/share/qt3/lib/libqt-mt.so.3
#17 0xb7b50cbc in QSocketNotifier::activated ()
from /usr/share/qt3/lib/libqt-mt.so.3
#18 0xb77e0569 in QSocketNotifier::event ()
from /usr/share/qt3/lib/libqt-mt.so.3
#19 0xb7755698 in QApplication::internalNotify ()
from /usr/share/qt3/lib/libqt-mt.so.3
#20 0xb77558b6 in QApplication::notify () from /usr/share/qt3/lib/libqt-mt.so.3
#21 0xb715b6fc in KApplication::notify () from /usr/lib/libkdecore.so.4
#22 0xb76e55e5 in QApplication::sendEvent ()
from /usr/share/qt3/lib/libqt-mt.so.3
#23 0xb7746ac9 in QEventLoop::activateSocketNotifiers ()
from /usr/share/qt3/lib/libqt-mt.so.3
#24 0xb76f9334 in QEventLoop::processEvents ()
from /usr/share/qt3/lib/libqt-mt.so.3
#25 0xb776df48 in QEventLoop::processEvents ()
from /usr/share/qt3/lib/libqt-mt.so.3
#26 0xb77541ca in QApplication::processEvents ()
from /usr/share/qt3/lib/libqt-mt.so.3
#27 0xb77541f5 in QApplication::processEvents ()
from /usr/share/qt3/lib/libqt-mt.so.3
#28 0x0806f9b7 in main (argc=1, argv=0xbfa83e14)
at RGbuild/sequencer/main.cpp:265