From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6507 invoked by alias); 26 Mar 2003 23:35:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6498 invoked from network); 26 Mar 2003 23:35:58 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 26 Mar 2003 23:35:58 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18yMKX-0001UK-00; Wed, 26 Mar 2003 19:37:21 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18yKQz-0007tO-00; Wed, 26 Mar 2003 18:35:53 -0500 Date: Wed, 26 Mar 2003 23:35:00 -0000 From: Daniel Jacobowitz To: Adam Fedor Cc: Andrew Cagney , gdb@sources.redhat.com Subject: Re: objc-lang.c portability (Was Re: [PATCH] Step over Objective-C dispatch function) Message-ID: <20030326233553.GA30284@nevyn.them.org> Mail-Followup-To: Adam Fedor , Andrew Cagney , gdb@sources.redhat.com References: <3E7A2DCA.6050205@redhat.com> <0E3D4316-5FE3-11D7-8F82-000A277AC1A4@doc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0E3D4316-5FE3-11D7-8F82-000A277AC1A4@doc.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00366.txt.bz2 On Wed, Mar 26, 2003 at 04:31:23PM -0700, Adam Fedor wrote: > > On Thursday, March 20, 2003, at 02:08 PM, Andrew Cagney wrote: > > > >I've looked at what the underlying code is trying to do and, > >unfortunatly, the original objc-lang.c botched its portability(1), > >sigh! The file is currently native only so infrun.c can't directly > >refer to objc-lang.c, and hence, will need to go via a dispatch table. > > Going via a dispatch table wouldn't hurt anyway. > > > >(1) I noticed that the parameter extract methods assume host=target. > > > > I'm wondering what's not portable with objc-lang.c? With the remaining > patches I have that require this, I was thinking it might be easier to > just fix it now. The alternative appears to be adding a whole bunch of > things to the language_defn structure. I admit I don't really > understand the problem though. At the very least FETCH_ARGUMENT and CONVERT_FUNCPTR need to go into the architecture vector. They're completely incorrect: - they assume host == target - they will prevent GDB from compiling on host !< {i386, ppc, sparc, hppa} -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer