From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10743 invoked by alias); 11 Aug 2009 17:54:17 -0000 Received: (qmail 10727 invoked by uid 22791); 11 Aug 2009 17:54:16 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from gmp-eb-inf-2.sun.com (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Aug 2009 17:54:10 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n7BHs7dB015670 for ; Tue, 11 Aug 2009 17:54:07 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KO80040042Y6W00@fe-emea-09.sun.com> for gdb@sourceware.org; Tue, 11 Aug 2009 18:53:43 +0100 (BST) Received: from [10.0.0.3] ([unknown] [129.150.124.141]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KO8001AM4DI1Y30@fe-emea-09.sun.com>; Tue, 11 Aug 2009 18:53:43 +0100 (BST) Date: Tue, 11 Aug 2009 17:54:00 -0000 From: Christian Thalinger Subject: Re: status of Darwin support In-reply-to: <8ac60eac0908111038k1304f9dai73d23718d0ec1431@mail.gmail.com> To: Paul Pluzhnikov Cc: gdb@sourceware.org Message-id: <4A81B025.7060400@Sun.COM> References: <4A5F8D9E.1060307@Sun.COM> <4A7FFAB3.7080903@Sun.COM> <8ac60eac0908101320k6cc20e9age92656cba254a5d4@mail.gmail.com> <4A812B8B.8040202@Sun.COM> <8ac60eac0908110933s6caf5abdsa1320f626dea860b@mail.gmail.com> <4A819F90.40006@Sun.COM> <4A81A102.5020104@Sun.COM> <8ac60eac0908111012o163f62d6n672f6928bdedab7e@mail.gmail.com> <4A81A984.7090101@Sun.COM> <8ac60eac0908111038k1304f9dai73d23718d0ec1431@mail.gmail.com> User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) 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/msg00075.txt.bz2 Paul Pluzhnikov wrote: > On Tue, Aug 11, 2009 at 10:25 AM, Christian > Thalinger wrote: > >> (gdb) p sect2->objfile->section_offsets[0]@17 >> $5 = {{offsets = {7106}}, {offsets = {0}} , { >> offsets = {4294940264}}, {offsets = {4294944662}}, {offsets = >> {4294944325}}, {offsets = {0}}, {offsets = {0}}} > > Hmm, not all zeros ... > It would have helped me a lot if I know what values are expected here :-( > > I think I'll have to get gdb-cvs working before I can debug this some more. > > Searching google for the "Unable to find Mach task port for process-id" > shows several threads like this: > http://lists.apple.com/archives/Xcode-users/2007/Dec/msg00777.html > > So I'll probably have to find out the differences between GDB in Xcode 2.5 > and 3.0. I suspect there is some magic syscall one has to perform on Leopard. > > BTW, what OS are you on? It's 10.5.8: $ uname -a Darwin macbook 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 but it also worked on 10.5.7. The only thing that pops into my mind is that my user is also an admin... -- Christian