Re: Weird PT_DETACH

2001-05-30 Thread Jiangyi Liu
Hi, I tried to use (caddr_t)1 in PT_DETACH, but the code just failed. I'm confused. It just seems the execve is stopped. Maybe I'd read through the kernel source code to figure out where the problem is. Jiangyi [EMAIL PROTECTED] (diman) writes: > Hope your program not named "./test" ??

Re: Weird PT_DETACH

2001-05-30 Thread diman
Hope your program not named "./test" ?? I changed it to /bin/sh and it works just fine. It was hard to debug due to my own proggie bug :) bb. #include #include #include int main() { pid_t pid; if(!(pid=fork())) { /* child */

Re: Weird PT_DETACH

2001-05-30 Thread diman
eird. Any clue? > > - Original Message - > From: "diman" <[EMAIL PROTECTED]> > To: "Jiangyi Liu" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, May 30, 2001 8:54 PM > Subject: Re: Weird PT_DETACH > > >

RE: Weird PT_DETACH

2001-05-30 Thread Jiangyi Liu
m: "diman" <[EMAIL PROTECTED]>To: "Jiangyi Liu" <[EMAIL PROTECTED]>Cc: <[EMAIL PROTECTED]>Sent: Wednesday, May 30, 2001 8:54 PMSubject: Re: Weird PT_DETACH> > > To attach debugger to a process please use PT_ATTACH> request instead of PT_DETACH. Use PT_DETACH to stop> debugging a process and leave it alone.>

Re: Weird PT_DETACH

2001-05-30 Thread diman
To attach debugger to a process please use PT_ATTACH request instead of PT_DETACH. Use PT_DETACH to stop debugging a process and leave it alone. On 30 May 2001, Jiangyi Liu wrote: > Hi all, > > The ptrace(2) man page is probably outdated. I used PT_DETACH in the > fol