summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2011-01-06 20:27:12 +0100
committerNick Schermer <nick@xfce.org>2011-01-06 20:49:23 +0100
commitd2a239054f3b1eba1c87197b47ce13ee91bbf27d (patch)
tree0cef9d949e0864b078d90084515b67dbbb8582f6 /common
parent3a10aa15c92404cb688d76e417b6ae847e35a886 (diff)
downloadxfce4-panel-d2a239054f3b1eba1c87197b47ce13ee91bbf27d.tar.gz
Move gdb/valgrind debug messages to main.
Diffstat (limited to 'common')
-rw-r--r--common/panel-debug.c44
-rw-r--r--common/panel-debug.h2
2 files changed, 0 insertions, 46 deletions
diff --git a/common/panel-debug.c b/common/panel-debug.c
index a78922b9..6eecdd54 100644
--- a/common/panel-debug.c
+++ b/common/panel-debug.c
@@ -109,50 +109,6 @@ panel_debug_print (PanelDebugFlag domain,
-void
-panel_debug_notify_proxy (void)
-{
- gchar *path;
- const gchar *proxy_application;
-
- if (G_UNLIKELY (PANEL_HAS_FLAG (panel_debug_flags, PANEL_DEBUG_GDB)))
- proxy_application = "gdb";
- else if (G_UNLIKELY (PANEL_HAS_FLAG (panel_debug_flags, PANEL_DEBUG_VALGRIND)))
- proxy_application = "valgrind";
- else
- return;
-
- path = g_find_program_in_path (proxy_application);
- if (G_LIKELY (path != NULL))
- {
- g_printerr (PACKAGE_NAME "(debug): running plugins with %s; "
- "log files stored in %s\n", path, g_get_tmp_dir ());
- g_free (path);
-
- if (PANEL_HAS_FLAG (panel_debug_flags, PANEL_DEBUG_GDB))
- {
- /* performs sanity checks on the released memory slices */
- g_setenv ("G_SLICE", "debug-blocks", TRUE);
- }
- else if (PANEL_HAS_FLAG (panel_debug_flags, PANEL_DEBUG_VALGRIND))
- {
- /* use g_malloc() and g_free() instead of slices */
- g_setenv ("G_SLICE", "always-malloc", TRUE);
- g_setenv ("G_DEBUG", "gc-friendly", TRUE);
- }
- }
- else
- {
- /* make sure external plugins are not started in one of the proxies */
- PANEL_UNSET_FLAG (panel_debug_flags, PANEL_DEBUG_GDB | PANEL_DEBUG_VALGRIND);
-
- g_printerr (PACKAGE_NAME "(debug): %s not found in PATH\n",
- proxy_application);
- }
-}
-
-
-
gboolean
panel_debug_has_domain (PanelDebugFlag domain)
{
diff --git a/common/panel-debug.h b/common/panel-debug.h
index 5c55cf13..7ca93d50 100644
--- a/common/panel-debug.h
+++ b/common/panel-debug.h
@@ -41,8 +41,6 @@ typedef enum
}
PanelDebugFlag;
-void panel_debug_notify_proxy (void);
-
gboolean panel_debug_has_domain (PanelDebugFlag domain);
void panel_debug (PanelDebugFlag domain,