debug stracktrace added
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 2 Mar 2011 21:28:25 +0000 (21:28 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 2 Mar 2011 21:28:25 +0000 (21:28 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9044 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session_events.cc

index df47cd5baf25752a156285c4891ac2737a99f7f4..f3f0ead3ae1de554cedfe3e55c0d0beeda17cbf6 100644 (file)
@@ -62,6 +62,11 @@ SessionEvent::operator new (size_t)
        CrossThreadPool* p = pool->per_thread_pool ();
        SessionEvent* ev = static_cast<SessionEvent*> (p->alloc ());
        DEBUG_TRACE (DEBUG::SessionEvents, string_compose ("%1 Allocating SessionEvent from %2 ev @ %3\n", pthread_self(), p->name(), ev));
+#ifdef NDEBUG
+       if (DEBUG::SessionEvents & PBD::debug_bits) {
+               stacktrace (cerr, 20);
+       }
+#endif
        ev->own_pool = p;
        return ev;
 }