From 18f5fd81460b256c3c1c54e2de1d2baa495b3bb8 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Fri, 13 Apr 2012 19:56:05 +0000 Subject: * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based on BFD_HAVE_SYS_PROCFS_TYPE. * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. * configure: Regenerate. * config.in: Likewise. --- gdb/gdbserver/configure | 74 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) (limited to 'gdb/gdbserver/configure') diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index ebb6698..b2980d6 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -5430,6 +5430,80 @@ $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } fi +if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5 +$as_echo_n "checking for lwpid_t in thread_db.h... " >&6; } + if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int +main () +{ +lwpid_t avar + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gdbserver_cv_have_thread_db_type_lwpid_t=yes +else + gdbserver_cv_have_thread_db_type_lwpid_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then + +$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5 +$as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; } + +fi + +if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5 +$as_echo_n "checking for psaddr_t in thread_db.h... " >&6; } + if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int +main () +{ +psaddr_t avar + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gdbserver_cv_have_thread_db_type_psaddr_t=yes +else + gdbserver_cv_have_thread_db_type_psaddr_t=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then + +$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5 +$as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; } + +fi + old_LIBS="$LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } -- cgit v1.1