diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-08-22 14:18:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-08-22 14:18:02 +0000 |
commit | 5885ab493f5387813a5bc1c774678f303cf80dae (patch) | |
tree | d2efedc11b57211bd334482020817db8e29f95f9 | |
parent | 651f22f717f19eb895fac91d0cda86ed0e942ca7 (diff) | |
download | gdb-5885ab493f5387813a5bc1c774678f303cf80dae.zip gdb-5885ab493f5387813a5bc1c774678f303cf80dae.tar.gz gdb-5885ab493f5387813a5bc1c774678f303cf80dae.tar.bz2 |
* configure.in: Change test for return type of ptrace to default
to `long' instead of `int'.
* configure: Regenerate.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rwxr-xr-x | gdb/configure | 6 | ||||
-rw-r--r-- | gdb/configure.in | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 831dc47..0aff1bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-08-22 Mark Kettenis <kettenis@gnu.org> + + * configure.in: Change test for return type of ptrace to default + to `long' instead of `int'. + * configure: Regenerate. + 2004-08-21 Mark Kettenis <kettenis@gnu.org> * config/alpha/alpha-linux.mh (LOADLIBES): New variable. diff --git a/gdb/configure b/gdb/configure index 51fab07..3c5df37 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 fa07450..da0ad48 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. |