diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-06-19 20:57:22 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-06-19 20:57:22 +0300 |
commit | 1ab61e1508bb2c35d536717868d9dbe5ea20fa93 (patch) | |
tree | ea4efcbdeff93c87e9213f9b22e55bdaf3d86918 | |
parent | fd3c1195711270a001d860770098b8c0d9118c10 (diff) | |
download | egawk-1ab61e1508bb2c35d536717868d9dbe5ea20fa93.tar.gz egawk-1ab61e1508bb2c35d536717868d9dbe5ea20fa93.tar.bz2 egawk-1ab61e1508bb2c35d536717868d9dbe5ea20fa93.zip |
Additional debugging flags at compile time.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
3 files changed, 9 insertions, 4 deletions
@@ -17,6 +17,11 @@ * gawkapi.c (release_flattened_array): Delete elements flagged for deletion. Free the flattened array also. + Add additional debugging when developing: + + * configure.ac: Add additional debugging flags. + * configure: Regenerated. + 2012-06-18 Arnold D. Robbins <arnold@skeeve.com> * gawkapi.h (get_array_element): Restore `wanted' paramater. @@ -5535,7 +5535,7 @@ $as_echo_n "checking for special development options... " >&6; } if test -f $srcdir/.developing then # add other debug flags as appropriate, save GAWKDEBUG for emergencies - CFLAGS="$CFLAGS -DARRAYDEBUG" + CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG" if grep dbug $srcdir/.developing then CFLAGS="$CFLAGS -DDBUG" @@ -5545,7 +5545,7 @@ then # enable debugging using macros also if test "$GCC" = yes then - CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } diff --git a/configure.ac b/configure.ac index 55bf0bab..90ad44b5 100644 --- a/configure.ac +++ b/configure.ac @@ -80,7 +80,7 @@ AC_MSG_CHECKING([for special development options]) if test -f $srcdir/.developing then # add other debug flags as appropriate, save GAWKDEBUG for emergencies - CFLAGS="$CFLAGS -DARRAYDEBUG" + CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG" if grep dbug $srcdir/.developing then CFLAGS="$CFLAGS -DDBUG" @@ -90,7 +90,7 @@ then # enable debugging using macros also if test "$GCC" = yes then - CFLAGS="$CFLAGS -Wall" + CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2" fi AC_MSG_RESULT([yes]) else |