diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rwxr-xr-x | gdb/configure | 7 | ||||
-rw-r--r-- | gdb/configure.ac | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a47c14e..c35ed65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-11-11 Tom Tromey <tromey@redhat.com> + + * config.in, configure: Rebuild. + * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall". + 2013-11-11 Joel Brobecker <brobecker@adacore.com> * remote-sim.c (gdbsim_detach): Break declaration into diff --git a/gdb/configure b/gdb/configure index 1728d09..8b20a13 100755 --- a/gdb/configure +++ b/gdb/configure @@ -12454,10 +12454,15 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; } fi -if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then +if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then + ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall" +if test "x$ac_cv_func_syscall" = x""yes; then : $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h + +fi + fi ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> diff --git a/gdb/configure.ac b/gdb/configure.ac index 34908ab..88db73a 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1736,8 +1736,10 @@ if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then ) fi 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.]) +if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then + AC_CHECK_FUNC(syscall, + AC_DEFINE(HAVE_TKILL_SYSCALL, 1, [Define if you support the tkill syscall.]) + ) fi dnl Check if we can disable the virtual address space randomization. |