This is the mail archive of the
mailing list for the GDB project.
Re: status of Darwin support
On Aug 11, 2009, at 7:06 AM, Paul Pluzhnikov wrote:
On Mon, Aug 10, 2009 at 1:20 PM, Paul Pluzhnikov<email@example.com
I will try to reproduce the Darwin failure, but I won't get to my Mac
until later tonight.
I couldn't get GDB to even run the program:
GNU gdb (GDB) 22.214.171.12490811-cvs
Starting program: /Users/ppluzhnikov/gdb-cvs/build/gdb/a.out
Unable to find Mach task port for process-id 98005: (os/kern)
(please check gdb is setgid procmod)
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.
Which version of MacOS-X are you using ?
Error 5 is EIO in /usr/include/sys/errno.h
Except this is not a unix error number but a Mach one :-)