PR 17185 describes a problem with using gdb+guile with libgc 7.4.0.
The symptom is a hang in sigsuspend.
[The thread referenced in the PR has the details.]
It's not clear what the right fix is, or even where the bug is yet.
This patch applies the same workaround Guile has applied.
There is no functionality or real performance loss with this,
and Guile has been using it for awhile.

	* configure.ac: Add check for header gc/gc.h.
	Add check for function setenv.
	* configure: Regenerate.
	* config.in: Regenerate.
	* guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
This commit is contained in:
Doug Evans
2014-07-26 14:49:04 -07:00
parent e57e6ddc2e
commit 74edf51613
5 changed files with 61 additions and 0 deletions

26
gdb/configure vendored
View File

@@ -9103,6 +9103,32 @@ fi
# PR 17185, see if we can get the libgc version to see if we need
# to apply the workaround.
for ac_header in gc/gc.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
if test "x$ac_cv_header_gc_gc_h" = x""yes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_GC_GC_H 1
_ACEOF
fi
done
for ac_func in setenv
do :
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
if test "x$ac_cv_func_setenv" = x""yes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SETENV 1
_ACEOF
fi
done
# --------------------- #
# Check for libmcheck. #
# --------------------- #