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 Aug 11, 2009, at 7:06 AM, Paul Pluzhnikov wrote:


On Mon, Aug 10, 2009 at 1:20 PM, Paul Pluzhnikov<ppluzhnikov@google.com > wrote:

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:


../gdb ../a.out
GNU gdb (GDB) 6.8.50.20090811-cvs
...
(gdb) r
Starting program: /Users/ppluzhnikov/gdb-cvs/build/gdb/a.out
Unable to find Mach task port for process-id 98005: (os/kern) failure (0x5).
(please check gdb is setgid procmod)
(gdb) q


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 :-)


Tristan.


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