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" ??
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 */
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
>
>
>
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.>
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
5 matches
Mail list logo