From 59f80f10887fdfa0299b22f33b11efa4ec069fee Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 31 Dec 2006 20:20:13 +0000 Subject: * configure.ac: Add tests for TD_VERSION and TD_NOTLS. * linux-thread-db.c (thread_db_err_str): Recognize TD_NOTALLOC, TD_VERSION, and TD_NOTLS. * configure, config.in: Regenerated. --- gdb/configure.ac | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'gdb/configure.ac') diff --git a/gdb/configure.ac b/gdb/configure.ac index 4deb4f5b..0f6a1c9 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1024,7 +1024,8 @@ if test ${build} = ${host} -a ${host} = ${target} ; then AC_SUBST(CONFIG_LDFLAGS) fi -dnl See if we have a thread_db header file that has TD_NOTALLOC. +dnl See if we have a thread_db header file that has TD_NOTALLOC and +dnl other error codes. if test "x$ac_cv_header_thread_db_h" = "xyes"; then AC_CACHE_CHECK([whether has TD_NOTALLOC], gdb_cv_thread_db_h_has_td_notalloc, @@ -1035,11 +1036,37 @@ if test "x$ac_cv_header_thread_db_h" = "xyes"; then gdb_cv_thread_db_h_has_td_notalloc=no ) ) + AC_CACHE_CHECK([whether has TD_VERSION], + gdb_cv_thread_db_h_has_td_version, + AC_TRY_COMPILE( + [#include ], + [int i = TD_VERSION;], + gdb_cv_thread_db_h_has_td_version=yes, + gdb_cv_thread_db_h_has_td_version=no + ) + ) + AC_CACHE_CHECK([whether has TD_NOTLS], + gdb_cv_thread_db_h_has_td_notls, + AC_TRY_COMPILE( + [#include ], + [int i = TD_NOTLS;], + gdb_cv_thread_db_h_has_td_notls=yes, + gdb_cv_thread_db_h_has_td_notls=no + ) + ) fi if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then AC_DEFINE(THREAD_DB_HAS_TD_NOTALLOC, 1, [Define if has the TD_NOTALLOC error code.]) fi +if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then + AC_DEFINE(THREAD_DB_HAS_TD_VERSION, 1, + [Define if has the TD_VERSION error code.]) +fi +if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then + AC_DEFINE(THREAD_DB_HAS_TD_NOTLS, 1, + [Define if has the TD_NOTLS error code.]) +fi dnl See if we have a sys/syscall header file that has __NR_tkill. if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then -- cgit v1.1