This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: status of Darwin support


On Mon, Aug 10, 2009 at 11:59 PM, Tristan Gingold<gingold@adacore.com> wrote:

>> This even if I make GDB suid-root (I also tried setgid procmod):
>> ls -l ../gdb
>> -rwsr-sr-x ?1 root ?wheel ?4075816 Aug 10 20:21 ../gdb
>
> IIRC root/wheel doesn't work. ?You need setgid procmod only.

As I said, I did try that; no dice:

ls -l ../gdb
-rwxr-sr-x  1 ppluzhnikov  procmod  4075816 Aug 10 20:21 ../gdb

../gdb -ex run ../a.out
...
Unable to find Mach task port for process-id 98439: (os/kern) failure (0x5).
 (please check gdb is setgid procmod)


> Which version of MacOS-X are you using ?

uname -a
Darwin ppluzhnikov-macbookpro.local 9.7.0 Darwin Kernel Version 9.7.0:
Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386

"About this Mac" says:
System Version:	Mac OS X 10.5.7 (9J61)
Kernel Version:	Darwin 9.7.0

>> Error 5 is EIO in /usr/include/sys/errno.h
>
> Except this is not a unix error number but a Mach one :-)

I see. /usr/include/mach/kern_return.h says:

#define KERN_FAILURE                    5
                /* The function could not be performed.  A catch-all.
                 */

Not much help I am afraid :-(

-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]