This is the mail archive of the gdb@sources.redhat.com 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]

Re: ptrace(2) autoconf tests


Mark Kettenis <kettenis@chello.nl> wrote:
> Ah, smart.  I signed myself up again.  The missing prototype on Tru64
> is suspicious; is the return value really `int'?  Current GDB code
> seems to suggest it isn't.

The man page says 'int'.

I did:

  cd /usr/include
  grep ptrace `find * -type -f print`

And I did:

  echo '#include <sys/signal.h>' > ptrace.c
  echo '#include <sys/ptrace.h>' >> ptrace.c
  cc -E ptrace.c > z1.out
  /usr/local/bin/gcc -E ptrace.c > z2.out

No prototype in sight.

All this on spe147.testdrive.hp.com,

Michael C


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