Skip to content

Commit

Permalink
Drop support for dmalloc
Browse files Browse the repository at this point in the history
Last dmalloc release is from 2007, and these days there are plenty of
other, maintained tools for debugging memory issues.
  • Loading branch information
pmatilai committed Mar 27, 2020
1 parent 3017eae commit dd08abd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions configure.ac
Expand Up @@ -1009,13 +1009,6 @@ AS_IF([test "$enable_plugins" != no],[
AC_SUBST(WITH_AUDIT_LIB)
AM_CONDITIONAL(AUDIT,[test "$with_audit" = yes])

with_dmalloc=no
AC_ARG_WITH(dmalloc, [AS_HELP_STRING([--with-dmalloc],[build with dmalloc debugging support])])
if test "$with_dmalloc" = yes ; then
AC_DEFINE(DMALLOC, 1, [Build with dmalloc support?])
LIBS="$LIBS -ldmalloc"
fi

user_with_uid0=$(awk -F: '$3==0 {print $1;exit}' /etc/passwd)
group_with_gid0=$(awk -F: '$3==0 {print $1;exit}' /etc/group)
AC_DEFINE_UNQUOTED([UID_0_USER],["$user_with_uid0"],[Get the user name having userid 0])
Expand Down
4 changes: 0 additions & 4 deletions debug.h
Expand Up @@ -6,10 +6,6 @@

#include <assert.h>

#ifdef DMALLOC
#include <dmalloc.h>
#endif

#define RPMDBG_TOSTR(a) RPMDBG_TOSTR_ARG(a)
#define RPMDBG_TOSTR_ARG(a) #a

Expand Down

0 comments on commit dd08abd

Please sign in to comment.