Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Hudson <nick.hudson@dsl.pipex.com>
To: gdb-patches@sourceware.org
Subject: [rfa] Check for void * as 3rd arg of ptrace
Date: Fri, 04 Jan 2008 15:59:00 -0000	[thread overview]
Message-ID: <200801041558.59527.nick.hudson@dsl.pipex.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Hi,

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

OK?

Thanks,
Nick

[-- Attachment #2: ChangeLog --]
[-- Type: text/plain, Size: 139 bytes --]

2008-01-04  Nick Hudson  <nick.hudson@dsl.pipex.com>

	* configure.ac: Check for void * as 3 argument of ptrace.
	* configure: regenerate.

[-- Attachment #3: configure.diff --]
[-- Type: text/x-diff, Size: 1313 bytes --]

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

             reply	other threads:[~2008-01-04 15:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-04 15:59 Nick Hudson [this message]
2008-01-13 10:43 ` Joel Brobecker
2008-01-13 12:39   ` Nick Hudson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801041558.59527.nick.hudson@dsl.pipex.com \
    --to=nick.hudson@dsl.pipex.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox