From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8037 invoked by alias); 18 Oct 2006 16:43:48 -0000 Received: (qmail 8029 invoked by uid 22791); 18 Oct 2006 16:43:48 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 18 Oct 2006 16:43:39 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GaEVu-0003S2-0A; Wed, 18 Oct 2006 12:43:30 -0400 Date: Wed, 18 Oct 2006 16:43:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: Joel Brobecker , gdb-patches@sources.redhat.com Subject: Re: [RFC] Replace deprecated_target_new_objfile_hook by observer? Message-ID: <20061018164329.GD10436@nevyn.them.org> Mail-Followup-To: Ulrich Weigand , Joel Brobecker , gdb-patches@sources.redhat.com References: <20061017233524.GA18064@nevyn.them.org> <200610181629.k9IGT2ZX000588@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200610181629.k9IGT2ZX000588@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00222.txt.bz2 On Wed, Oct 18, 2006 at 06:29:02PM +0200, Ulrich Weigand wrote: > + /* Don't attempt to use thread_db for remote targets. */ > + if (!target_can_run (¤t_target)) > + return; > + That's clever! I hadn't thought of using to_can_run that way. I think that should be fine. If we want to restructure to_can_run later, then it's easy enough to change. -- Daniel Jacobowitz CodeSourcery