From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 338 invoked by alias); 19 Oct 2007 17:41:21 -0000 Received: (qmail 32759 invoked by uid 22791); 19 Oct 2007 17:41:21 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 19 Oct 2007 17:41:19 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id D1FB82AB445; Fri, 19 Oct 2007 13:41:17 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HqG1we6GJFF5; Fri, 19 Oct 2007 13:41:17 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 984692AB444; Fri, 19 Oct 2007 13:41:17 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 7A21EE7AC8; Fri, 19 Oct 2007 10:41:15 -0700 (PDT) Date: Fri, 19 Oct 2007 17:41:00 -0000 From: Joel Brobecker To: Christoph Bartoschek Cc: gdb@sourceware.org Subject: Re: Compiling on AIX 5.3 with xlC Message-ID: <20071019174115.GI6187@adacore.com> References: <200710181330.49445.bartoschek@or.uni-bonn.de> <200710181826.04526.bartoschek@or.uni-bonn.de> <20071018163938.GS16618@adacore.com> <200710181849.09384.bartoschek@or.uni-bonn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710181849.09384.bartoschek@or.uni-bonn.de> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00176.txt.bz2 > But you mentioned ptrace. I've seen some warnings related to the arguments of > ptrace during compiling. If I remember correctly there has been a 32bit/64bit > mismatch of the type a pointer points to. It would be strange however, that this would only affect the debugger when you attach. I think the best way of knowing what is going on in your case is to debug GDB, in particular the ptrace call to get the PC register value, and see if the arguments passed look correct, if ptrace returns success, etc. -- Joel