This is the mail archive of the gdb@sourceware.org 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 PEEKTEXT IO error?!


On Wed, Oct 05, 2005 at 06:04:00PM +0100, David Lecomber wrote:
> Dear all,
> 
> I have a multithreaded code which is misbehaving in GDB (verified on
> latest CVS).  After threads are created, the target suddenly seems to
> become unwriteable, and even unreadable in some bits.

This usually means the thread is not stopped.  Failing that, check with
your kernel.

> If I then strace the running GDB, I see the following errors (and a few
> more ptrace errors).. 
> 
> ptrace(PTRACE_PEEKTEXT, 17994, 0x407480, [0]) = -1 EIO (Input/output
> error)
> ptrace(PTRACE_POKEDATA, 17994, 0x407480, 0xffffffffffffccff) = -1 EIO
> (Input/output error)

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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