From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23105 invoked by alias); 9 Sep 2003 19:16:50 -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 23088 invoked from network); 9 Sep 2003 19:16:49 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 9 Sep 2003 19:16:49 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0ED262B7F; Tue, 9 Sep 2003 15:16:48 -0400 (EDT) Message-ID: <3F5E271F.9020708@redhat.com> Date: Tue, 09 Sep 2003 19:16:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: Daniel Jacobowitz , Mark Kettenis , gdb@sources.redhat.com Subject: Re: [RFC] Register sets References: <200308232249.h7NMnvhh090154@elgar.kettenis.dyndns.org> <20030824164347.GA17520@nevyn.them.org> <200308252234.h7PMYqFu001245@elgar.kettenis.dyndns.org> <3F4B8173.1000302@redhat.com> <20030826165547.GA22836@nevyn.them.org> <86he3xrkjb.fsf@elgar.kettenis.dyndns.org> <20030904125514.GA2577@nevyn.them.org> <3F5D5C5D.4070809@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00115.txt.bz2 > Andrew Cagney writes: >> Er, this isn't a closure (at least not in the sense specified on >> bfd@). Rather this is an object and so might as well be implemented in >> more of an object style - pass the "struct regset" as the first >> parameter. > > > Not sure I think the distinction is too meaningful. Sorry, can you expand? > You should > probably post a specific suggestion that shows what you're after. Take a quick glance at any one of GDB's objects (regcache, gdbarch, reggroups, serial, ...) and the basic technique should be clear. Andrew