On Sun, Jul 20, 2008 at 05:15:16PM +0800, Peter Teoh wrote: > And ptrace_setregs() calling ptrace() seemed to returned -errno almost > immediately: > > (gdb) s > ptrace_setregs (pid=19131, regs=0x820aae0) at > /mnt/hd0/download/linux-2.6-latest/arch/um/sys-i386/ptrace_user.c:18 > 18 if (ptrace(PTRACE_SETREGS, pid, 0, regs) < 0) > (gdb) s > 19 return -errno; > (gdb) s > > Why is it so?
Because the registers are all zero. Jeff -- Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel