From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9810 invoked by alias); 15 Feb 2004 19:49:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9801 invoked from network); 15 Feb 2004 19:49:17 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.170.238) by sources.redhat.com with SMTP; 15 Feb 2004 19:49:17 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id DDC9B2B97; Sun, 15 Feb 2004 14:49:16 -0500 (EST) Message-ID: <402FCD3C.3040900@gnu.org> Date: Sun, 15 Feb 2004 19:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Mark Kettenis , gdb-patches@sources.redhat.com Subject: Re: [PATCH/RFC] Per-architecture DWARF CFI register state initialization hooks References: <200402072237.i17Mbqae011375@elgar.kettenis.dyndns.org> <4025795F.9080308@gnu.org> <200402151530.i1FFUaht009031@elgar.kettenis.dyndns.org> <402F988A.1080508@gnu.org> <20040215180922.GA30368@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00382.txt.bz2 > > Since I am obviously not getting it, could someone explain to me what > the modularity advantage is? Are you asking why modularity, in general, is advantage, or why here specifically this is more modula and hence an advantage? The dwarf2-frame is able to locally, and opaquely (to other components) implement the per-architecture mechanisms that it needs. No need to bloat that architecture vector with yet another global interface that nothing, other than dwarf2-frame requires. No need to publish anything other than what is specificly relevant to dwarf2-frame's clients - the dwarf2 initialize routine. > All I see is a function pointer, with a default value or overridden by > the architecture initialization, used to parametrize a module's > behavior. That is the same niche as every existing member of the > gdbarch vector. Andrew