mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* 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.
This commit is contained in:
@ -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 <thread_db.h> 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 <thread_db.h> has TD_VERSION],
|
||||
gdb_cv_thread_db_h_has_td_version,
|
||||
AC_TRY_COMPILE(
|
||||
[#include <thread_db.h>],
|
||||
[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 <thread_db.h> has TD_NOTLS],
|
||||
gdb_cv_thread_db_h_has_td_notls,
|
||||
AC_TRY_COMPILE(
|
||||
[#include <thread_db.h>],
|
||||
[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 <thread_db.h> 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 <thread_db.h> 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 <thread_db.h> 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
|
||||
|
Reference in New Issue
Block a user