From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28786 invoked by alias); 17 Jun 2003 00:40:27 -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 28741 invoked from network); 17 Jun 2003 00:40:27 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 17 Jun 2003 00:40:27 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id UAA07034; Mon, 16 Jun 2003 20:33:50 -0400 Received: from dash ([192.168.20.30]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id UAA00236; Mon, 16 Jun 2003 20:40:23 -0400 Message-ID: <001d01c3346a$798da6d0$2a00a8c0@dash> From: "Kris Warkentin" To: "Daniel Jacobowitz" Cc: "Gdb@Sources.Redhat.Com" , "Mark Kettenis" References: <074f01c33447$d404c2b0$0202040a@catdog> <20030616215630.GB12729@nevyn.them.org> Subject: Re: found gdbarch solib issue Date: Tue, 17 Jun 2003 00:40:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-06/txt/msg00328.txt.bz2 > Shouldn't it be returning arch_info anyway? Why isn't it? Is it > returning handler->arch_info? That's what was puzzling me. I was looking through the linked list of 10 million mips arches and thinking what the odds were of compatible ever equalling the handler arch_info. Seems to me that the return value might be useful in some circumstances but in this case it should be a boolean, "am I compatible or not?" > > - compatible = arch_info->compatible (arch_info, handler->arch_info); > > - if (compatible == handler->arch_info) > > + if(arch_info->compatible (arch_info, handler->arch_info)) cheers, Kris