This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb.threads/*.exp failures


Hi.
I'm seeing several failures in gdb.threads/*.exp.
I traced this to HAVE_TKILL_SYSCALL being undefined in config.h,
and I traced that to syscall() no longer being checked for.

Here's the code where it used to be checked:

AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid getgid \
                pipe poll pread pread64 pwrite readlink resize_term \
                sbrk setpgid setpgrp setsid \
                sigaction sigprocmask sigsetmask socketpair \
                ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise waitpid lstat \
                ptrace64])

And that causes HAVE_TKILL_SYSCALL to be skipped here:

dnl See if we can issue tkill syscall.
if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test
"x$ac_cv_func_syscall" = "xyes"; then
  AC_DEFINE(HAVE_TKILL_SYSCALL, 1, [Define if you support the tkill syscall.])
fi

I think this is the culprit:
9467110bae19116ba041118b7d26d675e87506ce

@@ -10159,10 +10119,10 @@ fi
 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
                pipe poll pread pread64 pwrite readlink resize_term \
                sbrk setpgid setpgrp setsid \
-               sigaction sigprocmask sigsetmask socketpair syscall \
+               sigaction sigprocmask sigsetmask socketpair \
                ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
                setrlimit getrlimit posix_madvise waitpid lstat \
-               fdwalk pipe2 ptrace64
+               ptrace64
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]