From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20905 invoked by alias); 11 Aug 2009 06:59:22 -0000 Received: (qmail 20896 invoked by uid 22791); 11 Aug 2009 06:59:21 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Aug 2009 06:59:15 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 7504529006E; Tue, 11 Aug 2009 08:59:12 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ShB7U+r2q1+h; Tue, 11 Aug 2009 08:59:11 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id C1716290020; Tue, 11 Aug 2009 08:59:11 +0200 (CEST) Cc: gdb@sourceware.org Message-Id: <8505B86C-9270-46E3-B5E2-5FAFD43A6C98@adacore.com> From: Tristan Gingold To: Paul Pluzhnikov In-Reply-To: <8ac60eac0908102206l49972a96pfc306be0cf15d34b@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: status of Darwin support Date: Tue, 11 Aug 2009 06:59:00 -0000 References: <4A5F8D9E.1060307@Sun.COM> <200908041804.30240.thiago.bauermann@gmail.com> <20090805044504.GJ4370@adacore.com> <4A7ABAF0.7010004@Sun.COM> <4A7FFAB3.7080903@Sun.COM> <8ac60eac0908101320k6cc20e9age92656cba254a5d4@mail.gmail.com> <8ac60eac0908102206l49972a96pfc306be0cf15d34b@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00061.txt.bz2 On Aug 11, 2009, at 7:06 AM, Paul Pluzhnikov wrote: > On Mon, Aug 10, 2009 at 1:20 PM, Paul Pluzhnikov > 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.