🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1081

Re: some compile errors fo gdb-7.0.1

#1081
From: Harald Koenig
Date: Wed, 24 Feb 2010 12:51
78 lines
4699 bytes
--45Z9DzgjV8m4Oswq
Content-Disposition: inline
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

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 


--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="aix-thread.c.diff"

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

--45Z9DzgjV8m4Oswq--
Technical Details
Message-ID: <mailman.1785.1267015911.14305.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mail
References: <20100215141621.GA9469@atuin.science-computing.de> <201002181923.34196.pedro@codesourcery.com> <20100223163505.GA21619@atuin.science-computing.de> <20100223171348.GA31492@atuin.science-computing.de>

Show Full Headers
Complete Article Headers
X-Google-Thread: f0ead4270c,bc75c21c9a9e46ff,start
X-Google-Attributes: gidf0ead4270c,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!usenet.stanford.edu!news.stanford.edu!not-for-mail
From: Harald Koenig <H.Koenig@science-computing.de>
Newsgroups: gnu.gdb.bug
Subject: Re: some compile errors fo gdb-7.0.1
Date: Wed, 24 Feb 2010 13:51:36 +0100
Lines: 81
Approved: bug-gdb@gnu.org
Message-ID: <mailman.1785.1267015911.14305.bug-gdb@gnu.org>
References: <20100215141621.GA9469@atuin.science-computing.de>
 <201002181923.34196.pedro@codesourcery.com>
 <20100223163505.GA21619@atuin.science-computing.de>
 <20100223171348.GA31492@atuin.science-computing.de>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="45Z9DzgjV8m4Oswq"
X-Trace: news.stanford.edu 1267015912 23839 199.232.76.165 (24 Feb 2010 12:51:52 GMT)
X-Complaints-To: news@news.stanford.edu
Cc: Harald Koenig <koenig@science-computing.de>, gdb-patches@sourceware.org,
 Pedro Alves <pedro@codesourcery.com>, bug-gdb@gnu.org
To: Harald Koenig <H.Koenig@science-computing.de>
Envelope-to: bug-gdb@gnu.org
X-Virus-Scanned: amavisd-new
Content-Disposition: inline
In-Reply-To: <20100223171348.GA31492@atuin.science-computing.de>
User-Agent: Mutt/1.5.18 (2008-05-17)
X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1)
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>