So does anyone have any other bright ideas for debugging as super-user? Please? If there are any pointers in the right direction, I'm not afraid of poking around in the source myself.
On Thu, Apr 15, 2010 at 11:00 AM, Bryce Schober <[email protected]>wrote: > 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 <[email protected]>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 <[email protected]>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 <[email protected]> >>> wrote: >>> > You could always modify /etc/sudoers to allow gdb to be run without a >>> password. >>> > >>> > /s/ Adam >>> > >>> >> >> > > > -- > Bryce Schober > -- Bryce Schober
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
