From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20158 invoked by alias); 16 Aug 2008 23:27:44 -0000 Received: (qmail 20146 invoked by uid 22791); 16 Aug 2008 23:27:44 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-dupuy.atl.sa.earthlink.net (HELO elasmtp-dupuy.atl.sa.earthlink.net) (209.86.89.62) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 16 Aug 2008 23:27:02 +0000 Received: from [68.108.140.98] (helo=macbook-2.local) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1KUVAS-0001GS-Vw; Sat, 16 Aug 2008 19:26:45 -0400 Message-ID: <48A76233.4090201@earthlink.net> Date: Sun, 17 Aug 2008 17:00:00 -0000 From: Stan Shebs User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Mario Emmenlauer CC: Stan Shebs , "Dr. Rolf Jansen" , gdb@sourceware.org Subject: Re: gdb supported on powerpc-apple-darwin ? References: <48A6E7E9.3070004@emmenlauer.de> <958EAB4C-D513-4823-9111-25A6F5743307@surtec.com> <48A71019.7060503@codesourcery.com> <48A74D74.5040707@emmenlauer.de> In-Reply-To: <48A74D74.5040707@emmenlauer.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da9403ed7b8d26a1937e87c32528c0326cadd350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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: 2008-08/txt/msg00208.txt.bz2 Mario Emmenlauer wrote: > I would assume that basic Darwin support in FSF GDB would be a good > starting point. You mentioned you already put some work into it, any > chances that you will continue? How far have you gotten? I got it to where it would up seize up waiting for signals and such from the inferior. :-) Just that much involved bringing over several thousand lines of Darwin-specific code. Dunno when/if I'll get back to it, CodeSourcery is keeping me plenty busy. :-) > > It seems very sadening that FSF gdb won't ever incorporate Apples > changes (or another type of darwin support). Of course one might know > who to point the finger at, but in the end that won't help. > If Apples fork is GPL, would it not be possible to back-merge the > darwin support, leaving out the other changes that are incompatible > to the current interface(s)? That's exactly what I did. The problem is that basic Darwin support is more complicated than average for a native config, because one has to listen for both messages and signals delivered by the system, and some of those calls are blocking - so GDB itself has to be multithreaded just so it can simultaneously listen for everything. A concerted effort by one person (either inside or outside Apple) could probably get the two versions back in sync, but it's a heavy-duty hacking project that will likely take a number of months of fulltime effort. Stan