From dad0671ba04d5c8151fbc448f3e35243f28c87c7 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Sun, 16 Jan 2011 19:17:45 +0000 Subject: Add dynamic type to SessionHandleRef debug output git-svn-id: svn://localhost/ardour2/branches/3.0@8516 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_handle.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/ardour/session_handle.cc') diff --git a/libs/ardour/session_handle.cc b/libs/ardour/session_handle.cc index 14ba994dc3..f36fff4785 100644 --- a/libs/ardour/session_handle.cc +++ b/libs/ardour/session_handle.cc @@ -17,6 +17,7 @@ */ +#include "pbd/demangle.h" #include "pbd/error.h" #include "pbd/boost_debug.h" @@ -82,5 +83,9 @@ SessionHandleRef::session_going_away () void SessionHandleRef::insanity_check () { - cerr << string_compose (_("programming error: %1"), "SessionHandleRef exists across sesssion deletion!") << endl; + cerr << string_compose ( + _("programming error: %1"), + string_compose("SessionHandleRef exists across sesssion deletion! Dynamic type: %1", + PBD::demangled_name (*this))) + << endl; } -- cgit v1.2.3