This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Re: ptrace(2) autoconf tests
- From: <m dot m dot kettenis at chello dot nl>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: <gdb at sources dot redhat dot com>
- Date: Wed, 11 Aug 2004 9:04:06 +0200
- Subject: Re: Re: ptrace(2) autoconf tests
- Reply-to: m dot m dot kettenis at chello dot nl
> van: Joel Brobecker <brobecker@gnat.com>
> datum: 2004/08/10 di PM 09:03:05 MEST
> I tested your patch below successfully on our 2 AIX systems (4.3.2 and
> 5.1). I also verified that configure found the right profile for ptrace
> and that infptrace.c compiled without any warning.
>
> About configure finding the right profile, there is one thing I am not
> sure about: The second parameter reported by configure is pid_t, while
> the include file seem to be saying that it's an int on 4.3.2 and a
> signed long on 5.1. There were no warnings during the build, so I
> assumed all was right.
Most systems have `typedef int pid_t', and the compiler doesn't really distinguish
between the two. Since I test for `pid_t' before `int', the detected signature is slightly
of. But this doesn't matter precisely for that reason. So nothing to worry.
Mark