Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Harald Koenig <H.Koenig@science-computing.de>
To: Harald Koenig <H.Koenig@science-computing.de>
Cc: Pedro Alves <pedro@codesourcery.com>,
	bug-gdb@gnu.org,         gdb-patches@sourceware.org,
	        Harald Koenig <koenig@science-computing.de>
Subject: Re: some compile errors fo gdb-7.0.1
Date: Wed, 24 Feb 2010 12:51:00 -0000	[thread overview]
Message-ID: <20100224125136.GA14069@atuin.science-computing.de> (raw)
In-Reply-To: <20100223171348.GA31492@atuin.science-computing.de>

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

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                                    //  /     \\  \
koenig@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 


[-- Attachment #2: aix-thread.c.diff --]
[-- Type: text/plain, Size: 573 bytes --]

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)
   {

  reply	other threads:[~2010-02-24 12:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20100215141621.GA9469@atuin.science-computing.de>
2010-02-18 19:23 ` Pedro Alves
2010-02-23 15:22   ` Harald Koenig
2010-02-23 17:08     ` Pedro Alves
2010-02-23 16:35   ` Harald Koenig
2010-02-23 17:14     ` Harald Koenig
2010-02-24 12:51       ` Harald Koenig [this message]
2010-02-24 13:35         ` Build errors on AIX Pedro Alves
2010-02-24 14:09           ` Harald Koenig
2010-03-01  6:47           ` Joel Brobecker
2010-03-01  6:51     ` some compile errors fo gdb-7.0.1 Joel Brobecker

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=20100224125136.GA14069@atuin.science-computing.de \
    --to=h.koenig@science-computing.de \
    --cc=bug-gdb@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=koenig@science-computing.de \
    --cc=pedro@codesourcery.com \
    /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