This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ptrace error


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
















Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]