Debugging a root process with "Quick debug"

General questions regarding the usage of CodeLite
dlezama
CodeLite Curious
Posts: 1
Joined: Fri Dec 06, 2013 12:22 pm
Genuine User: Yes
IDE Question: C++
Contact:

Debugging a root process with "Quick debug"

Post by dlezama »

Hi, in this page http://codelite.org/LiteEditor/Debugging there is a tip to set SUID for gdb in order to debug a root process. I'm using "Quick debug" and I see that gdb is ran as root, but the process I'm trying to debug is not, even when I set the SUID bit for it too (running it directly from a shell works as expected). What is making my process run with my user instead of root when it's launched in this way?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debugging a root process with "Quick debug"

Post by eranif »

I think that this is a limitation of the "SUID" thingi
For me, I simply run a second instance of codelite as root and use it to attach process

Eran
Make sure you have read the HOW TO POST thread
Post Reply