Re: [Qt-creator] Debugging as super-user

2010-04-28 Thread Bryce Schober
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 bryce.scho...@gmail.comwrote: Actually, that doesn't work

Re: [Qt-creator] Debugging as super-user

2010-04-15 Thread André Pönitz
On Thursday 15 April 2010 01:56:52 ext Bryce Schober wrote: yep. The problem is that I can't figure out how to get qt-creator to allow any wrapper to do the interactive stuff necessary to get through sudo, or preferrably gksu. That's strange. Does mlockall() depend on group permissions

Re: [Qt-creator] Debugging as super-user

2010-04-15 Thread Bryce Schober
Still no good. On Thu, Apr 15, 2010 at 1:28 AM, André Pönitz andre.poen...@nokia.comwrote: echo ' #include stdio.h #include unistd.h #include grp.h int main(int argc, char *argv[]) { setreuid(geteuid(), geteuid()); setregid(getegid(), getegid()); gid_t

Re: [Qt-creator] Debugging as super-user

2010-04-14 Thread Andre Poenitz
On Tue, Apr 13, 2010 at 09:12:07AM -0700, Bryce Schober wrote: Is there a way to get Qt Creator to launch gdb as super-user? Obviously, I can start Qt Creator as super-user, but that leaves all the modified source and outputs with superuser perms, which screws up normal-user operations like

Re: [Qt-creator] Debugging as super-user

2010-04-14 Thread Andre Poenitz
On Tue, Apr 13, 2010 at 09:12:07AM -0700, Bryce Schober wrote: Is there a way to get Qt Creator to launch gdb as super-user? Obviously, I can start Qt Creator as super-user, but that leaves all the modified source and outputs with superuser perms, which screws up normal-user operations

Re: [Qt-creator] Debugging as super-user

2010-04-14 Thread Bryce Schober
Neither option works for me. Our application, which is a PC-build-variant of our embedded application, calls mlockall(), which fails with EPERM. Normal command-line usage of sudo works great, either for running or debugging with gdb, but I'm not sure how I would get equivalent permissions through

Re: [Qt-creator] Debugging as super-user

2010-04-14 Thread Andre Poenitz
On Wed, Apr 14, 2010 at 02:28:27PM -0700, Bryce Schober wrote: Neither option works for me. Our application, which is a PC-build-variant of our embedded application, calls mlockall(), which fails with EPERM. Normal command-line usage of sudo works great, either for running or debugging with

Re: [Qt-creator] Debugging as super-user

2010-04-14 Thread Coda Highland
You could always modify /etc/sudoers to allow gdb to be run without a password. /s/ Adam On Wed, Apr 14, 2010 at 6:56 PM, Bryce Schober bryce.scho...@gmail.com wrote: yep. The problem is that I can't figure out how to get qt-creator to allow any wrapper to do the interactive stuff necessary to