linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Gdbserver syscall clobber
@ 2007-07-16 15:43 Bill Gatliff
  2007-07-16 15:53 ` Daniel Jacobowitz
  0 siblings, 1 reply; 11+ messages in thread
From: Bill Gatliff @ 2007-07-16 15:43 UTC (permalink / raw)
  To: gdb, linuxppc-embedded

Guys:


I'm trying to track down a problem where gdbserver is issuing a bogus 
syscall at the onset of a debugging session.  I'm using gdb-6.6, on an 
(ancient, I know) linux-2.4.16 kernel, pc603e machine.  Gcc-3.4.5, 
glibc-2.2.5 (both built with crosstools-0.43).  Gdbserver is statically 
linked.

When I run gdbserver under strace on the target, I see these in the log 
shortly after initiating the connection from my workstation:

...
ptrace(PTRACE_PEEKTEXT, 947, 0x10405394, [0x103e0cb0]) = 0
ptrace(PTRACE_PEEKTEXT, 947, 0x10405398, [0x103e0ce4]) = 0
ptrace(PTRACE_PEEKTEXT, 947, 0x1040539c, [0x103e0ce8]) = 0
send(4, "$103df2cc103df2e8103df2ec103df2f"..., 644, 0) = 644
recv(4, 0x7ffffd60, 1, 0)               = ? ERESTARTSYS (To be restarted)
--- SIGIO (I/O possible) @ 0 (0) ---
syscall_4294966784(0xa, 0x7ffffd34, 0x1, 0, 0x1008a3c7, 0x1008b5a3, 
0x1008b5a4, 0, 0x1, 0x80808080, 0x1008e778, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0x10080000, 0x10080000, 0x10080000, 0x1008b5a3, 0x10080000, 
0x1008b320, 0x100291a4, 0xd032, 0xa) = -1 (errno 38)
write(2, "putpkt(read): Function not imple"..., 39) = 39
...


Note the bogus syscall argument 4294966784.  It isn't *completely* 
bogus, interestingly, since if you google for that you come up with a 
few hits.  But no resolutions.

I'm stumped.  Does this problem sound familiar to anyone?  Had the same 
problem with gcc-2.95.3.


Kindest regards,


b.g.

-- 
Bill Gatliff
bgat@billgatliff.com

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

end of thread, other threads:[~2007-07-26 16:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 15:43 Gdbserver syscall clobber Bill Gatliff
2007-07-16 15:53 ` Daniel Jacobowitz
2007-07-18 17:42   ` Bill Gatliff
2007-07-18 17:59   ` Bill Gatliff
2007-07-18 18:31     ` Daniel Jacobowitz
2007-07-23 15:37       ` Bill Gatliff
2007-07-23 15:38       ` Bill Gatliff
2007-07-23 16:06       ` Bill Gatliff
2007-07-23 16:15         ` Daniel Jacobowitz
2007-07-26 16:28           ` Bill Gatliff
2007-07-23 16:19         ` Andreas Schwab

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 NNTP newsgroup(s).