From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15571 invoked by alias); 18 Oct 2007 16:39:44 -0000 Received: (qmail 15564 invoked by uid 22791); 18 Oct 2007 16:39:43 -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; Thu, 18 Oct 2007 16:39:42 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 8E27C2ABA16; Thu, 18 Oct 2007 12:39:40 -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 s7GO8rj13iW0; Thu, 18 Oct 2007 12:39:40 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 54AC02ABA08; Thu, 18 Oct 2007 12:39:40 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 40B0DE7A13; Thu, 18 Oct 2007 09:39:38 -0700 (PDT) Date: Thu, 18 Oct 2007 16:39:00 -0000 From: Joel Brobecker To: Christoph Bartoschek Cc: gdb@sourceware.org Subject: Re: Compiling on AIX 5.3 with xlC Message-ID: <20071018163938.GS16618@adacore.com> References: <200710181330.49445.bartoschek@or.uni-bonn.de> <200710181635.33871.bartoschek@or.uni-bonn.de> <20071018161538.GQ16618@adacore.com> <200710181826.04526.bartoschek@or.uni-bonn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200710181826.04526.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/msg00145.txt.bz2 > bartosch@duco:/fs/data/bartosch/work/12.1aktuell>gdb > GNU gdb 6.7 > Copyright (C) 2007 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "powerpc-ibm-aix5.3.0.0". > (gdb) attach 98248 > Attaching to process 98248 > 0x00000000 in ?? () Hmmm, that reminds me of a limitation in AIX. I just found this: /* According to ptrace(2), ptrace may fail with EPERM if "the Identifier parameter corresponds to a kernel thread which is stopped in kernel mode and whose computational state cannot be read or written." This happens quite often with register reads. */ But I've only observed this when switching to a different thread. Perhaps it's what is happening to you too. What happens if you run GDB with (gdb) set debug aix-thread before you attach? -- Joel