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]

[rfa] Check for void * as 3rd arg of ptrace


Hi,

NetBSD killed caddr_t so ptrace now takes void * as it's third argument.

OK?

Thanks,
Nick

Attachment: ChangeLog
Description: Text document

Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/configure,v
retrieving revision 1.241
diff -u -p -u -r1.241 configure
--- configure	16 Dec 2007 22:19:20 -0000	1.241
+++ configure	4 Jan 2008 15:36:25 -0000
@@ -19275,7 +19275,7 @@ else
 
 for gdb_arg1 in 'int' 'long'; do
  for gdb_arg2 in 'pid_t' 'int' 'long'; do
-  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
+  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
    for gdb_arg4 in 'int' 'long'; do
      cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.63
diff -u -p -u -r1.63 configure.ac
--- configure.ac	16 Dec 2007 22:19:20 -0000	1.63
+++ configure.ac	4 Jan 2008 15:36:27 -0000
@@ -640,7 +640,7 @@ AC_DEFINE_UNQUOTED(PTRACE_TYPE_RET, $gdb
 AC_CACHE_CHECK([types of arguments for ptrace], gdb_cv_func_ptrace_args, [
 for gdb_arg1 in 'int' 'long'; do
  for gdb_arg2 in 'pid_t' 'int' 'long'; do
-  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
+  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
    for gdb_arg4 in 'int' 'long'; do
      AC_TRY_COMPILE($gdb_ptrace_headers, [
 extern $gdb_cv_func_ptrace_ret

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