From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18127 invoked by alias); 3 Oct 2007 02:26:00 -0000 Received: (qmail 18120 invoked by uid 22791); 3 Oct 2007 02:26:00 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 03 Oct 2007 02:25:57 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l932PtSe012916 for ; Tue, 2 Oct 2007 22:25:55 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l932PtAh010538 for ; Tue, 2 Oct 2007 22:25:55 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l932Psfg000837 for ; Tue, 2 Oct 2007 22:25:54 -0400 Message-ID: <4702FD3E.3000908@redhat.com> Date: Wed, 03 Oct 2007 02:26:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: frysk@sourceware.org Subject: Task.getIsa() -> frysk.isa.ISA Task.getISA() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00012.txt.bz2 Hi, I've expanded frysk.isa a little adding frysk.isa.ISA {.IA32, .X8664, ...} which can be used as a HashMap key. This packages locally select isa specific structures without having to bloat the bloated frysk.proc.Isa. For instance, the DWARF code needs to select a mapping between frysk and dwarf register numbers. Instead of adding that to frysk.proc.Isa, a local factory is implemented, keyed of Task.getISA(), that returns the required information. See frysk.debuginfo.DwarfRegisterMapFactory. Andrew