From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28091 invoked by alias); 24 Feb 2010 14:09:06 -0000 Received: (qmail 28067 invoked by uid 22791); 24 Feb 2010 14:09:04 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp1.belwue.de (HELO smtp1.belwue.de) (129.143.2.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Feb 2010 14:08:59 +0000 Received: from mx4.science-computing.de (mx4.science-computing.de [193.197.16.30]) by smtp1.belwue.de with ESMTP id o1OE8vmi004784 for ; Wed, 24 Feb 2010 15:08:57 +0100 (MET) env-from (prvs=664c95453=H.Koenig@science-computing.de) Received: from localhost (localhost [127.0.0.1]) by scmail.science-computing.de (Postfix) with ESMTP id C9D65414003; Wed, 24 Feb 2010 15:08:56 +0100 (CET) Received: from scmail.science-computing.de ([127.0.0.1]) by localhost (obitest.science-computing.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wc1A0EpCQ0Wk; Wed, 24 Feb 2010 15:08:49 +0100 (CET) Received: from atuin.science-computing.de (atuin.science-computing.de [10.10.8.66]) by scmail.science-computing.de (Postfix) with ESMTP id 82C94414002; Wed, 24 Feb 2010 15:08:49 +0100 (CET) Received: by atuin.science-computing.de (Postfix, from userid 1009) id 6C6A889D8D; Wed, 24 Feb 2010 15:08:49 +0100 (CET) Date: Wed, 24 Feb 2010 14:09:00 -0000 From: Harald Koenig To: Pedro Alves Cc: Harald Koenig , Joel Brobecker , gdb-patches@sourceware.org, Harald Koenig Subject: Re: Build errors on AIX Message-ID: <20100224140849.GA14754@atuin.science-computing.de> References: <20100215141621.GA9469@atuin.science-computing.de> <20100223171348.GA31492@atuin.science-computing.de> <20100224125136.GA14069@atuin.science-computing.de> <201002241335.07011.pedro@codesourcery.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201002241335.07011.pedro@codesourcery.com> User-Agent: Mutt/1.5.18 (2008-05-17) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00589.txt.bz2 On Feb 24, Pedro Alves wrote: > > > "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. > ^^^^^^ > > How does one read that? line 352, column 46? On my sources, oops, cut'n'paste error from the log file -- sorry! yes. that's a (W)arning in line 352, don't care;) the real error msg was this one -- fix is in my last mail: "gdb-CVS-20100222/gdb/aix-thread.c", line 651.14: 1506-343 (S) Redeclaration of getthrds differs from previous declaration on line 904 of "/usr/include/procinfo.h". > I can't really guess exactly what's going on here. AIX/RS6000 > is probably the port that most needs love of all the supported > ports. E.g, I wouldn't be surprised if recent changes like PIE > or multi-program support and the revamping around these broke > this port, for it does things in non-standard ways. These > commands may offer some clues: > > "(gdb) maint info breakpoints" > "(gdb) set debug infrun 1" > "(gdb) set target infrun 1" (gdb) set target infrun 1 Ambiguous set command "target infrun 1": target-async, target-charset, target-wide-charset. so: (gdb) set debug infrun 1 (gdb) r Starting program: a.out infrun: proceed (addr=0xffffffff, signal=0, step=0) infrun: resume (step=0, signal=0), trap_expected=0 hello infrun: wait_for_inferior (treat_exec_as_sigtrap=0) infrun: target_wait (-1, status) = infrun: 356558 [process 356558], infrun: status->kind = exited, status = 9 infrun: infwait_normal_state infrun: TARGET_WAITKIND_EXITED Program exited with code 011. infrun: stop_stepping (gdb) maint info breakpoints Num Type Disp Enb Address What -1 thread events keep y 0xd04b37e8 <__pthread_init> inf 1 (gdb) b main Cannot access memory at address 0xf0322508 (gdb) maint info breakpoints Num Type Disp Enb Address What -1 thread events keep y 0xd04b37e8 <__pthread_init> inf 1 (gdb) b main Cannot access memory at address 0xf0322508 (gdb) and for AIX 5.1: gdb a.out GNU gdb (GDB) 7.1.50.20100222-cvs Reading symbols from a.out...(no debugging symbols found)...done. (gdb) b main Breakpoint 1 at 0x1000039c (gdb) maint info breakpoints Num Type Disp Enb Address What 1 breakpoint keep y 0x1000039c inf 1 (gdb) r Starting program: a.out Error in re-setting breakpoint 1: Cannot access memory at address 0x0 Error in re-setting breakpoint 1: Cannot access memory at address 0x0 hello Program exited normally. (gdb) r Starting program: a.out hello Program exited normally. (gdb) maint info breakpoints Num Type Disp Enb Address What 1 breakpoint keep n 0x1000039c inf 1 -1 thread events keep y 0xd0347e44 <__pthread_init> inf 1 (gdb) r Starting program: a.out hello Program exited normally. (gdb) b main Note: breakpoint 1 (disabled) also set at pc 0x1000039c. Breakpoint 2 at 0x1000039c (gdb) maint info breakpoints Num Type Disp Enb Address What 1 breakpoint keep n 0x1000039c inf 1 -1 thread events keep y 0xd0347e44 <__pthread_init> inf 1 2 breakpoint keep y 0x1000039c inf 1 (gdb) r Starting program: a.out Breakpoint 2, 0x1000039c in main () (gdb) ah, I just notice that bp #1 got disabled (likely because of that "Error in re-setting breakpoint 1: Cannot access memory at address 0x0"). instead of a 2nd "b main" it also works to enable #1 with "en b 1" ... > If you have an older gdb that works, I think we get to > debug the new gdb to try to track this down. yes, our gdb-6.8 binary works just fine for me on AIX 5.1++ ... 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