[Qt-creator] Debugging as super-user
Bryce Schober
bryce.schober at gmail.com
Thu Apr 15 20:00:20 CEST 2010
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.schober at 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 <coda at 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 <coda at bobandgeorge.com>
>> wrote:
>> > You could always modify /etc/sudoers to allow gdb to be run without a
>> password.
>> >
>> > /s/ Adam
>> >
>>
>
>
--
Bryce Schober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100415/1e6799aa/attachment.html
More information about the Qt-creator-old
mailing list