From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31515 invoked by alias); 29 May 2012 15:56:09 -0000 Received: (qmail 31500 invoked by uid 22791); 29 May 2012 15:56:07 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 May 2012 15:55:54 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4TFtWNK007588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 29 May 2012 11:55:32 -0400 Received: from host2.jankratochvil.net (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4TFtRO7017950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 29 May 2012 11:55:30 -0400 Date: Tue, 29 May 2012 15:56:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Pedro Alves , Tom Tromey , gdb-patches@sourceware.org Subject: Re: RFC for: "Re: Regression for gdb.fortran/library-module.exp [Re: [RFA] choose symbol from given block's objfile first.]" Message-ID: <20120529155527.GA9177@host2.jankratochvil.net> References: <20120514145151.GA30451@host2.jankratochvil.net> <4FB1459E.60208@redhat.com> <20120514175913.GM10253@adacore.com> <20120514180624.GA16368@host2.jankratochvil.net> <20120515130851.GP10253@adacore.com> <20120516195718.GA10253@adacore.com> <20120518164815.GA11883@host2.jankratochvil.net> <20120528142727.GH5492@adacore.com> <20120528161200.GA19230@host2.jankratochvil.net> <20120529154436.GO5492@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120529154436.GO5492@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg01023.txt.bz2 On Tue, 29 May 2012 17:44:36 +0200, Joel Brobecker wrote: > OK, I think we should be able to modify my patch to add a new > gdbarch attribute, unset by default, which we will set on all > Windows arches. Then, the iterator can query that gdbarch attribute > to decide whether to ignore the "context" objfile or not. I agree in general. Just a gdbarch design detail - gdbarch attribute should be a real function so that the default (SVR4-compatible) implementation can just ignore the context_objfile parameter. The MS-Windows implementation will unconditionally follow context_objfile. This will not clutter the default code with MS-Windows specifics. Thanks, Jan