Actually, that doesn't work either. Qt Creator launches my application under the gdb-su, but it can't communicate for some reason. When I try to pause the app, it fails to pause, and the debugger window shows:
State changed from InferiorRunning(10) to InferiorStopping(11). sStop requested... dTRYING TO INTERRUPT INFERIOR dCANNOT INTERRUPT 32147 My reference is that if I launch qt creator as root, all the debugging runs smoothly. On Thu, Apr 15, 2010 at 8:39 AM, Bryce Schober <bryce.scho...@gmail.com>wrote: > Thanks for educating the Linux newbie! So here's what I got to work well > for me. > > I added this line to my /etc/sudoers, using visudo: > > <user> <machine>= NOPASSWD: /usr/bin/gdb > > Then I created this bash script wrapper as /usr/bin/gdb-su: > > #!/bin/bash > sudo gdb $@ > > Finally, I set qt-creator to use gdb-su as its gdb, and presto, happiness! > > -- > Bryce Schober > > > On Wed, Apr 14, 2010 at 6:26 PM, Coda Highland <c...@bobandgeorge.com>wrote: > >> And for that matter you could use that technique to restrict it to >> your own user, too, so services couldn't get free root via gdb. >> >> /s/ Adam >> >> On Wed, Apr 14, 2010 at 8:25 PM, Coda Highland <c...@bobandgeorge.com> >> wrote: >> > You could always modify /etc/sudoers to allow gdb to be run without a >> password. >> > >> > /s/ Adam >> > >> > > -- Bryce Schober
_______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator