diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 17:44:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-10 17:44:33 +0000 |
commit | ed48b97900e41c68918d613e5deac3f57f0213df (patch) | |
tree | 31fe0de8c34cfb0f267ab74e95c8c83d15e22fbd | |
parent | 7fc5212eaf2c602a561524d2717ef843511591ef (diff) |
provide runtime control over how much boost "live" debugging info is provided
git-svn-id: svn://localhost/ardour2/branches/3.0@8821 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/main.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 7932978379..0d2eb23ef0 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -31,6 +31,9 @@ #include "pbd/textreceiver.h" #include "pbd/failed_constructor.h" #include "pbd/pthread_utils.h" +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS +#include "pbd/boost_debug.h" +#endif #include <jack/jack.h> @@ -535,8 +538,9 @@ int main (int argc, char *argv[]) { fixup_bundle_environment (argc, argv); - if (!Glib::thread_supported()) + if (!Glib::thread_supported()) { Glib::thread_init(); + } gtk_set_locale (); @@ -564,6 +568,12 @@ int main (int argc, char *argv[]) text_receiver.listen_to (fatal); text_receiver.listen_to (warning); +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS + if (getenv ("BOOST_DEBUG")) { + boost_debug_shared_ptr_show_live_debugging (true); + } +#endif + if (parse_opts (argc, argv)) { exit (1); } |