mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
remove valgrind stuff. Without memchunks there's no need for it anymore.
Original commit message from CVS: * configure.ac: * gst/gst_private.h: * gst/gstinfo.c: (_gst_debug_init): remove valgrind stuff. Without memchunks there's no need for it anymore.
This commit is contained in:
parent
17d271f11e
commit
ea75a90a32
4 changed files with 8 additions and 62 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-05-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
* gst/gst_private.h:
|
||||||
|
* gst/gstinfo.c: (_gst_debug_init):
|
||||||
|
remove valgrind stuff. Without memchunks there's no need for it
|
||||||
|
anymore.
|
||||||
|
|
||||||
2005-05-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
2005-05-16 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
* gst/gstprobe.[ch]:
|
* gst/gstprobe.[ch]:
|
||||||
|
|
21
configure.ac
21
configure.ac
|
@ -429,27 +429,6 @@ AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
|
||||||
esac],
|
esac],
|
||||||
[USE_DEBUG=yes]) dnl Default value
|
[USE_DEBUG=yes]) dnl Default value
|
||||||
|
|
||||||
dnl valgrind inclusion
|
|
||||||
AC_ARG_ENABLE(valgrind,
|
|
||||||
AC_HELP_STRING([--disable-valgrind],[disable run-time valgrind detection]),
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) USE_VALGRIND="$USE_DEBUG" ;;
|
|
||||||
no) USE_VALGRIND=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind) ;;
|
|
||||||
esac],
|
|
||||||
[USE_VALGRIND="$USE_DEBUG"]) dnl Default value
|
|
||||||
VALGRIND_REQ="2.1"
|
|
||||||
if test "x$USE_VALGRIND" = xyes; then
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(VALGRIND, valgrind > $VALGRIND_REQ, USE_VALGRIND="yes", USE_VALGRIND="no")
|
|
||||||
fi
|
|
||||||
if test "x$USE_VALGRIND" = xyes; then
|
|
||||||
AC_DEFINE(HAVE_VALGRIND, 1, [Define if valgrind should be used])
|
|
||||||
AC_MSG_NOTICE(Using extra code paths for valgrind)
|
|
||||||
fi
|
|
||||||
AC_SUBST(VALGRIND_CFLAGS)
|
|
||||||
AC_SUBST(VALGRIND_LIBS)
|
|
||||||
|
|
||||||
dnl ################################################
|
dnl ################################################
|
||||||
dnl # Set defines according to variables set above #
|
dnl # Set defines according to variables set above #
|
||||||
dnl ################################################
|
dnl ################################################
|
||||||
|
|
|
@ -37,8 +37,6 @@ extern const char *g_log_domain_gstreamer;
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
gboolean __gst_in_valgrind (void);
|
|
||||||
|
|
||||||
/*** debugging categories *****************************************************/
|
/*** debugging categories *****************************************************/
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
|
|
|
@ -159,41 +159,6 @@ GstDebugCategory *GST_CAT_SEEK = NULL;
|
||||||
GstDebugCategory *GST_CAT_SIGNAL = NULL;
|
GstDebugCategory *GST_CAT_SIGNAL = NULL;
|
||||||
GstDebugCategory *GST_CAT_PROBE = NULL;
|
GstDebugCategory *GST_CAT_PROBE = NULL;
|
||||||
|
|
||||||
/* FIXME: export this? */
|
|
||||||
gboolean
|
|
||||||
__gst_in_valgrind (void)
|
|
||||||
{
|
|
||||||
static enum
|
|
||||||
{
|
|
||||||
GST_VG_UNCHECKED,
|
|
||||||
GST_VG_NO_VALGRIND,
|
|
||||||
GST_VG_INSIDE
|
|
||||||
}
|
|
||||||
in_valgrind = GST_VG_UNCHECKED;
|
|
||||||
|
|
||||||
if (in_valgrind == GST_VG_UNCHECKED) {
|
|
||||||
#ifdef HAVE_VALGRIND
|
|
||||||
if (RUNNING_ON_VALGRIND) {
|
|
||||||
GST_CAT_INFO (GST_CAT_GST_INIT, "we're running inside valgrind");
|
|
||||||
VALGRIND_PRINTF
|
|
||||||
("GStreamer has detected that it is running inside valgrind.");
|
|
||||||
VALGRIND_PRINTF
|
|
||||||
("It might now take different code paths to ease debugging.");
|
|
||||||
VALGRIND_PRINTF ("Of course, this may also lead to different bugs.");
|
|
||||||
in_valgrind = GST_VG_INSIDE;
|
|
||||||
} else {
|
|
||||||
GST_CAT_LOG (GST_CAT_GST_INIT, "not doing extra valgrind stuff");
|
|
||||||
in_valgrind = GST_VG_NO_VALGRIND;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
in_valgrind = GST_VG_NO_VALGRIND;
|
|
||||||
#endif
|
|
||||||
g_assert (in_valgrind == GST_VG_NO_VALGRIND ||
|
|
||||||
in_valgrind == GST_VG_INSIDE);
|
|
||||||
}
|
|
||||||
return (in_valgrind == GST_VG_INSIDE) ? TRUE : FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* _gst_debug_init:
|
* _gst_debug_init:
|
||||||
*
|
*
|
||||||
|
@ -285,10 +250,6 @@ _gst_debug_init (void)
|
||||||
GST_DEBUG_BOLD | GST_DEBUG_FG_WHITE | GST_DEBUG_BG_RED, NULL);
|
GST_DEBUG_BOLD | GST_DEBUG_FG_WHITE | GST_DEBUG_BG_RED, NULL);
|
||||||
GST_CAT_PROBE = _gst_debug_category_new ("GST_PROBE",
|
GST_CAT_PROBE = _gst_debug_category_new ("GST_PROBE",
|
||||||
GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, "pad probes");
|
GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, "pad probes");
|
||||||
|
|
||||||
|
|
||||||
/* print out the valgrind message if we're in valgrind */
|
|
||||||
__gst_in_valgrind ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we can't do this further above, because we initialize the GST_CAT_DEFAULT struct */
|
/* we can't do this further above, because we initialize the GST_CAT_DEFAULT struct */
|
||||||
|
|
Loading…
Reference in a new issue