public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* ptrace error
@ 2005-06-03  0:47 Ivan Popivanov
  2005-06-06 23:57 ` Ivan Popivanov
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Popivanov @ 2005-06-03  0:47 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ptrace error
  2005-06-03  0:47 ptrace error Ivan Popivanov
@ 2005-06-06 23:57 ` Ivan Popivanov
  2005-06-07  9:28   ` Manoj Iyer
  0 siblings, 1 reply; 4+ messages in thread
From: Ivan Popivanov @ 2005-06-06 23:57 UTC (permalink / raw)
  To: gdb

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
>
>
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ptrace error
  2005-06-06 23:57 ` Ivan Popivanov
@ 2005-06-07  9:28   ` Manoj Iyer
  2005-06-09  1:30     ` Ivan Popivanov
  0 siblings, 1 reply; 4+ messages in thread
From: Manoj Iyer @ 2005-06-07  9:28 UTC (permalink / raw)
  To: Ivan Popivanov; +Cc: gdb


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
> >
> >
> >
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ptrace error
  2005-06-07  9:28   ` Manoj Iyer
@ 2005-06-09  1:30     ` Ivan Popivanov
  0 siblings, 0 replies; 4+ messages in thread
From: Ivan Popivanov @ 2005-06-09  1:30 UTC (permalink / raw)
  To: Manoj Iyer; +Cc: gdb

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
>>>
>>>
>>>
>>>      
>>>
>>
>>    
>>
>
>
>
>  
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-09  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-03  0:47 ptrace error Ivan Popivanov
2005-06-06 23:57 ` Ivan Popivanov
2005-06-07  9:28   ` Manoj Iyer
2005-06-09  1:30     ` Ivan Popivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).