From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8487 invoked by alias); 23 Apr 2003 03:07:49 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8393 invoked from network); 23 Apr 2003 03:07:48 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 23 Apr 2003 03:07:48 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 1989m5-0005c1-00; Tue, 22 Apr 2003 21:14:17 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 1989lo-0003cL-00; Tue, 22 Apr 2003 22:14:00 -0400 Date: Wed, 23 Apr 2003 14:08:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: Adam Fedor , GDB Patches Subject: Re: [RFC] Trivialize objc-lang.c FETCH_ARGUMENT Message-ID: <20030423021400.GA13849@nevyn.them.org> Mail-Followup-To: Michael Snyder , Adam Fedor , GDB Patches References: <5D31A204-752F-11D7-A2CD-000A277AC1A4@doc.com> <3EA5F51A.8CC11F12@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EA5F51A.8CC11F12@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00433.txt.bz2 On Tue, Apr 22, 2003 at 07:06:18PM -0700, Michael Snyder wrote: > Adam Fedor wrote: > > > > On Tuesday, April 22, 2003, at 07:41 PM, Michael Snyder wrote: > > > > > Adam Fedor wrote: > > >> > > >> Well, I thought I'd at least try to see if this patch would be ok. > > >> Here > > >> I replace the arcitecture dependant FETCH_ARGUMENT with a trivial > > >> implementation that does nothing. This would allow objc-lang.o to be > > >> linked into gdb and I commit most or all of the remaining Objective-C > > >> patches. Then I could work on fixing FETCH_ARGUMENT at my leasure... > > > > > > That seems reasonable. By the way, if there's been an ongoing > > > discussion, > > > I haven't followed it. Why is it that you need to do this in an > > > architecture-dependent way? GDB should have enough debug info to > > > do this cleanly, shouldn't it? > > > > > It's possible, although these particular functions are in the Apple > > runtime and highly optimized, possibly in assembly. I'm not sure if the > > information is available. I'll have to look at it more, but I couldn't > > even test the changes since it only works on MacOSX/Darwin and GNU gdb > > doesn't compile on Darwin. > > Yeah, if I remember from my days at NeXT, the purpose of this was > in debugging something that was not really debuggable. > > So some sort of compromise would seem to be in order. > > If this function does not need to be general (it doesn't seem to > be used anywhere else), perhaps the apple folk can agree to some > sort of a specified API for obtaining the arguments they need. > Or perhaps they no longer need such radical optimization, and > the functions can be written in C. The functions are written in C; they just don't necessarily have debug info. If you search for FETCH_POINTER_ARGUMENT in the archives (about a month ago?) you'll see that I need something similar for C++; so I support just getting this method properly defined and into the architecure where it's feasible to. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer