From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25892 invoked by alias); 15 Nov 2001 02:28:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25871 invoked from network); 15 Nov 2001 02:28:10 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sourceware.cygnus.com with SMTP; 15 Nov 2001 02:28:10 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 028793CF6; Wed, 14 Nov 2001 21:28:05 -0500 (EST) Message-ID: <3BF32834.6070803@cygnus.com> Date: Mon, 05 Nov 2001 15:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020 X-Accept-Language: en-us MIME-Version: 1.0 To: Michael Snyder Cc: gdb-patches@sources.redhat.com, cagney@redhat.com, jimb@redhat.com Subject: Re: [RFA] Update D10V target to use new Harvardized type casts. References: <200111142057.fAEKvKB12616@reddwarf.cygnus.com> <3BF2E045.5060906@cygnus.com> <3BF326B0.B4030626@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00072.txt.bz2 >> One thought, though, should that test: >> >> ... == FUNC || ... == METHOD || ... == CODE_SPACE >> >> be abstracted out? Every harvard target I've looked at has had that >> same test. > > > Possible. Although it's only a few lines, so far they have shaken out > as pretty generically useful. Can't think where they would go though... I'd guess a simple predicate function in gdbtypes.h + gdbtypes.c. The reason for suggesting it is that I've been tweeking random targets so that they get the lines right. Andrew