From 5885ab493f5387813a5bc1c774678f303cf80dae Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 22 Aug 2004 14:18:02 +0000 Subject: [PATCH] * configure.in: Change test for return type of ptrace to default to `long' instead of `int'. * configure: Regenerate. --- gdb/ChangeLog | 6 ++++++ gdb/configure | 6 +++--- gdb/configure.in | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 831dc47783b..0aff1bdc524 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-08-22 Mark Kettenis + + * configure.in: Change test for return type of ptrace to default + to `long' instead of `int'. + * configure: Regenerate. + 2004-08-21 Mark Kettenis * config/alpha/alpha-linux.mh (LOADLIBES): New variable. diff --git a/gdb/configure b/gdb/configure index 51fab0704df..3c5df37b163 100755 --- a/gdb/configure +++ b/gdb/configure @@ -7328,17 +7328,17 @@ else #include "confdefs.h" $gdb_ptrace_headers int main() { -extern long ptrace (); +extern int ptrace (); ; return 0; } EOF if { (eval echo configure:7335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - gdb_cv_func_ptrace_ret='long' + gdb_cv_func_ptrace_ret='int' else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - gdb_cv_func_ptrace_ret='int' + gdb_cv_func_ptrace_ret='long' fi rm -f conftest* fi diff --git a/gdb/configure.in b/gdb/configure.in index fa074501bc4..da0ad487189 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -506,9 +506,9 @@ gcc_AC_CHECK_DECLS(ptrace, , [ # Check return type. AC_CACHE_CHECK([return type of ptrace], gdb_cv_func_ptrace_ret, AC_TRY_COMPILE($gdb_ptrace_headers, - [extern long ptrace ();], - gdb_cv_func_ptrace_ret='long', - gdb_cv_func_ptrace_ret='int')) + [extern int ptrace ();], + gdb_cv_func_ptrace_ret='int', + gdb_cv_func_ptrace_ret='long')) AC_DEFINE_UNQUOTED(PTRACE_TYPE_RET, $gdb_cv_func_ptrace_ret, [Define as the return type of ptrace.]) # Check argument types. -- 2.30.2