Hi Ido,
On Mon, Feb 27, 2012 at 12:33:19PM +0200, ik wrote:
> I have a program that I write that uses user-space libraries that talk
> with kernel space, and I use an IDE for the development and debugging.
>
> The program requires to run as super user, but I do not want to run
> the whole IDE itself as super user, only gdb for this specific
> project, but the IDE
> does not allow me to do something like: /usr/bin/kdesu /usr/bin/gdb ...
> I also do not wish to provide suid to root, and allow every one to use
> gdb as root.
>
> Beside executing gdb myself with sudo, how would you recommend me to
> elevate user privileges for gdb on such case ?
Run your target program under gdbserver like:
$ gdbserver :1234 myprog
to make gdbserver listen to port 1234 TCP. Then, at the gdb prompt connect to
gdbserver:
(gdb) target remote localhost:1234
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il