From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9418 invoked by alias); 22 Nov 2003 00:41:06 -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 9411 invoked from network); 22 Nov 2003 00:41:05 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 22 Nov 2003 00:41:05 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1ANLph-0004Ip-0X; Fri, 21 Nov 2003 19:41:05 -0500 Date: Sat, 22 Nov 2003 00:41:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa:symtab] deprecate inside_entry_func Message-ID: <20031122004104.GA12027@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb-patches@sources.redhat.com References: <3FA2F940.5040102@redhat.com> <3FBE6D46.4070201@redhat.com> <20031121195949.GA794@nevyn.them.org> <3FBE79B6.2090209@redhat.com> <20031121204833.GA2356@nevyn.them.org> <3FBE7BD8.2090601@redhat.com> <20031121210412.GA2627@nevyn.them.org> <3FBEAFCB.90601@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FBEAFCB.90601@gnu.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00459.txt.bz2 On Fri, Nov 21, 2003 at 07:37:31PM -0500, Andrew Cagney wrote: > > >>That's not what I'm asking. > >> > >>With the call to inside_entry_func removed, from get_prev_frame, can you > >>point me at any remainng _legitimate) uses of that function? > > > > > >The other call to it in legacy_frame_chain_valid, which wants to know > >the same thing? I imagine the third caller, in frv-tdep.c, is bogus > >and could be removed somehow. But if it's going to be left there then > >it seems reasonable to update it also. > > I see Kevin's finally removed that bogus call. Mistakenly, as you may have seen from his followup. > >Conceptually the patch you just posted sees to be: > > - Change the implementation of inside_entry_func > > - Inline the new inside_entry_func into the one caller you're fond of > > - Add a deprecated copy of the old implementation for the other > > callers > > > >>From the man who is always telling us how unimportant performance is > >compared to clarity, I don't see the point. Also, this leaves an old > >implementation and a new implementation around for no visible reason. > > "Indirection can be helpful, but needless redirection is irritating." > > Note that the implementation of the two mechanisms is very different. > Better to leave old code using the old mechanism, and new code using the > new mechanism. I believe the point of this discussion is that Kevin and I disagree with your conclusion. It's a mechanism, it doesn't matter if the implementation is different; and one of them works and the other doesn't, so why keep two implementations of the same thing if only one works? In any case, Kevin's patch to resolve this issue looks reasonable to me. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer