[asterisk-addons-commits] trunk - r186 /trunk/asterisk-ooh323c/

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Fri Dec 9 13:26:02 CST 2005


Author: objsys
Date: Fri Dec  9 13:25:49 2005
New Revision: 186

URL: http://svn.digium.com/view/asterisk-addons?rev=186&view=rev
Log:
Added makefile option for debugging thread, deadlock

Modified:
    trunk/asterisk-ooh323c/Makefile.am
    trunk/asterisk-ooh323c/Makefile.in
    trunk/asterisk-ooh323c/configure
    trunk/asterisk-ooh323c/configure.in

Modified: trunk/asterisk-ooh323c/Makefile.am
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/Makefile.am?rev=186&r1=185&r2=186&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/Makefile.am (original)
+++ trunk/asterisk-ooh323c/Makefile.am Fri Dec  9 13:25:49 2005
@@ -16,7 +16,7 @@
 	$(MAKE) "CFLAGS = -DGNU -D_GNU_SOURCE -D_REENTRANT -O2" all
 
 debug:
-	$(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT" all
+	$(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT $(DEBUG_THREADS)" all
 
 install: 
 	cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so

Modified: trunk/asterisk-ooh323c/Makefile.in
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/Makefile.in?rev=186&r1=185&r2=186&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/Makefile.in (original)
+++ trunk/asterisk-ooh323c/Makefile.in Fri Dec  9 13:25:49 2005
@@ -69,6 +69,7 @@
 AS = @AS@
 AWK = @AWK@
 CC = @CC@
+DEBUG_THREADS = @DEBUG_THREADS@
 DEPDIR = @DEPDIR@
 DLLTOOL = @DLLTOOL@
 ECHO = @ECHO@
@@ -1232,7 +1233,7 @@
 	$(MAKE) "CFLAGS = -DGNU -D_GNU_SOURCE -D_REENTRANT -O2" all
 
 debug:
-	$(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT" all
+	$(MAKE) "CFLAGS = -g -DGNU -D_GNU_SOURCE -D_REENTRANT $(DEBUG_THREADS)" all
 
 install: 
 	cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so

Modified: trunk/asterisk-ooh323c/configure
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/configure?rev=186&r1=185&r2=186&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/configure (original)
+++ trunk/asterisk-ooh323c/configure Fri Dec  9 13:25:49 2005
@@ -469,7 +469,7 @@
 # include <unistd.h>
 #endif"
 
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE OOH323CDRIVERDIR INSTALLPREFIX OOH323CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE OOH323CDRIVERDIR INSTALLPREFIX OOH323CFLAGS DEBUG_THREADS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -1856,6 +1856,8 @@
 OOH323CFLAGS="-DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT"
 
 
+DEBUG_THREADS="-DDUMP_SCHEDULER -DDEBUG_SCHEDULER -DDEBUG_THREADS -DDETECT_DEADLOCKS #-DDO_CRASH"
+
 
 
 ac_ext=c
@@ -4572,7 +4574,7 @@
 case $host in
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 4575 "configure"' > conftest.$ac_ext
+  echo '#line 4577 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -5101,7 +5103,7 @@
 save_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 compiler_c_o=no
-if { (eval echo configure:5104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:5106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
   # The compiler can only warn and ignore the option if not recognized
   # So say no if there are warnings
   if test -s out/conftest.err; then
@@ -6285,7 +6287,7 @@
   libsuff=
   case "$host_cpu" in
   x86_64*|s390x*)
-    echo '#line 6288 "configure"' > conftest.$ac_ext
+    echo '#line 6290 "configure"' > conftest.$ac_ext
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -6957,7 +6959,7 @@
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 6960 "configure"
+#line 6962 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -7055,7 +7057,7 @@
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 7058 "configure"
+#line 7060 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -9892,6 +9894,7 @@
 s, at OOH323CDRIVERDIR@,$OOH323CDRIVERDIR,;t t
 s, at INSTALLPREFIX@,$INSTALLPREFIX,;t t
 s, at OOH323CFLAGS@,$OOH323CFLAGS,;t t
+s, at DEBUG_THREADS@,$DEBUG_THREADS,;t t
 s, at CC@,$CC,;t t
 s, at CFLAGS@,$CFLAGS,;t t
 s, at LDFLAGS@,$LDFLAGS,;t t

Modified: trunk/asterisk-ooh323c/configure.in
URL: http://svn.digium.com/view/asterisk-addons/trunk/asterisk-ooh323c/configure.in?rev=186&r1=185&r2=186&view=diff
==============================================================================
--- trunk/asterisk-ooh323c/configure.in (original)
+++ trunk/asterisk-ooh323c/configure.in Fri Dec  9 13:25:49 2005
@@ -24,6 +24,8 @@
 OOH323CFLAGS="-DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT"
 AC_SUBST(OOH323CFLAGS)
 
+DEBUG_THREADS="-DDUMP_SCHEDULER -DDEBUG_SCHEDULER -DDEBUG_THREADS -DDETECT_DEADLOCKS #-DDO_CRASH"
+AC_SUBST(DEBUG_THREADS)
 
 
 AC_PROG_CC



More information about the asterisk-addons-commits mailing list