From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29595 invoked by alias); 9 Jun 2005 01:30:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29568 invoked by uid 22791); 9 Jun 2005 01:30:38 -0000 Received: from pop.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 09 Jun 2005 01:30:38 +0000 Received: (qmail invoked by alias); 09 Jun 2005 01:30:36 -0000 Received: from CPE000625d77020-CM400049235905.cpe.net.cable.rogers.com (EHLO [127.0.0.1]) [24.112.22.14] by mail.gmx.net (mp031) with SMTP; 09 Jun 2005 03:30:36 +0200 X-Authenticated: #1323561 Message-ID: <42A79BAF.4080406@gmx.net> Date: Thu, 09 Jun 2005 01:30:00 -0000 From: Ivan Popivanov User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: Manoj Iyer CC: gdb@sources.redhat.com Subject: Re: ptrace error References: <429FA893.8030000@gmx.net> <42A4E2E4.3060807@gmx.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-SW-Source: 2005-06/txt/msg00076.txt.bz2 gdb 6.3 (compiled manually) gcc version 3.3.4 (tested with both compilers) xlC version 6 AIX 5.2 xlC -o loop -g loop.C gdb my GDB session is below ... Thanks in advance! Ivan GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-ibm-aix5.2.0.0". (gdb) file loop Reading symbols from /home/popivan/src/loop...done. (gdb) attach 1753266 Attaching to program: /home/popivan/src/loop, process 1753266 0x10001e68 in main (argc=1, argv=0x2ff225f0) at loop.C:8 8 for( i = 0; true; --i ) (gdb) n ptrace: There is an input or output error.. 0x10001e68 in main (argc=1, argv=0x2ff225f0) at loop.C:8 8 for( i = 0; true; --i ) (gdb) detach Detaching from program: /home/popivan/src/loop, process 1753266 (gdb) quit Manoj Iyer wrote: >Can you give more details? Version of AIX, XLC, GDB. Compile options, >testcase and exact commands? > > >----- >manjo >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >+ Cogito ergo sum + >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >On Mon, 6 Jun 2005, Ivan Popivanov wrote: > > > >>Any help with that? How to debug? >> >>Thanks! >> >>Ivan Popivanov wrote: >> >> >> >>>Hi, >>> >>>I created a program that just runs an infinite loop. Compile using xlC >>>on AIX, run and attached with GDB. When I tried next, I got: >>> >>>ptrace: There is an input or output error.. >>> >>>Am I doing something wrong? Is that a known problem? >>> >>>TIA, >>>Ivan >>> >>> >>> >>> >>> >> >> >> > > > > >