Unix Programming - Problems attaching gdb to running processes on Red Hat Linux 9

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > Problems attaching gdb to running processes on Red Hat Linux 9





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems attaching gdb to running processes on Red Hat Linux 9
Ben

2004-01-23, 4:55 pm

I am running Red Hat Linux 9 with the 2.4.20-8 kernel.

I am trying to debug a process started by my program by attaching to
it but I get this error message in GDB: "ptrace: Operation not
permitted".

A ps -ef on the process I was trying to attach to and yields
following:

user1 18686 18283 0 18:31 ? [childprogram]

I have compiled using the -g flag so it should be debuggable. I
believe that the brackets designate some kind of system process that
can not be debugged. On the older linux kernels I do not have this
problem. In the past I've simply resorted to using an older kernel but
I'd like to know if there is some way I can work around this.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com