On Feb 23, Harald Koenig wrote:

> right now I'm trying to build gdb on AIX 6.1 which right now fails here
> 
>       "gdb-CVS-20100222/gdb/aix-thread.c", line 352.46: 1506-280 (W) Function 
> argument assignment between types "int*" and "unsigned int*" is not allowed.
> 
> where the source reads like this -- hmmmmm....
> 
>   /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file.  */
>   extern int getthrds (pid_t, struct thrdsinfo64 *,
>                        int, pthdb_tid_t *, int);

with the attached patch AIX 6.1 builds fine, and 5.1 still does so....
(_AIX51 is defined in 5.2/5.3 too!  I've not tested 5.0 though which is 
why I don't check _AIX50 which is defined in 5.1-5.3 too).

but:  6.1 has the same break point problems as 5.3:

- with no breakpoint before 1st run, break points can't be set later at all

- otherwise break points seem to work




Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koe...@science-computing.de                            ^^^^^       ^^^^^
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 

Index: aix-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/aix-thread.c,v
retrieving revision 1.72
diff -u -r1.72 aix-thread.c
--- aix-thread.c        1 Jan 2010 07:31:29 -0000       1.72
+++ aix-thread.c        24 Feb 2010 12:46:26 -0000
@@ -647,9 +647,11 @@
   pthdb_tid_t ktid = 0;
   int result = 0;
 
+#if !defined(_AIX51) && !defined(_AIX61)
   /* getthrds(3) isn't prototyped in any AIX 4.3.3 #include file.  */
   extern int getthrds (pid_t, struct thrdsinfo64 *, 
                       int, pthdb_tid_t *, int);
+#endif
 
   while (1)
   {
_______________________________________________
bug-gdb mailing list
bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb

Reply via email to