From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1378 invoked by alias); 15 Aug 2008 15:11:18 -0000 Received: (qmail 1368 invoked by uid 22791); 15 Aug 2008 15:11:17 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Aug 2008 15:10:31 +0000 Received: (qmail 6455 invoked from network); 15 Aug 2008 15:10:30 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Aug 2008 15:10:30 -0000 From: Pedro Alves To: Vladimir Prus Subject: Re: [RFA] Remove unnecessary target defaults. Date: Fri, 15 Aug 2008 15:11:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org References: <200808151645.31042.vladimir@codesourcery.com> <200808151552.19945.pedro@codesourcery.com> <200808151902.07713.vladimir@codesourcery.com> In-Reply-To: <200808151902.07713.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808151610.55835.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00413.txt.bz2 On Friday 15 August 2008 16:02:07, Vladimir Prus wrote: > > ... yeah. I keep meaning to try adding a base target from which all > > targets inherit, so we could perhaps get rid of this INHERIT + > > de_fault business, and I somehow thought you could read minds. Well, > > you do, but you set it to block dumb ideas. :-) > > In fact, I cannot shake the feeling that current target stack is several > designs lumped together, and it would be beneficial to switch to a more > coherent design, where, in particular: > > - there's base target every other target derives from and most methods of > the base target forward to the target beneath > - dummy target catches all methods > - all INHERIT and de_fault code is removed > - all target_xxx methods (iterating over target stack) are removed, or make > just call current_target->xxx > > But this is fairly large thing to do. > Eh, you *do* read minds! -- Pedro Alves