summaryrefslogtreecommitdiff
path: root/libs/ardour/session_events.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-03-02 21:28:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-03-02 21:28:25 +0000
commit4071286bfa6bf4d1c3c5ab145df3fe98c88e2d6a (patch)
tree99dcedb26223f1cd90d46723382d64d07e3d26b9 /libs/ardour/session_events.cc
parentb800dc207ddc2cad32f96189e9700bc70e9b5942 (diff)
debug stracktrace added
git-svn-id: svn://localhost/ardour2/branches/3.0@9044 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_events.cc')
-rw-r--r--libs/ardour/session_events.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/session_events.cc b/libs/ardour/session_events.cc
index df47cd5baf..f3f0ead3ae 100644
--- a/libs/ardour/session_events.cc
+++ b/libs/ardour/session_events.cc
@@ -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;
}