From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14160 invoked by alias); 15 Jan 2014 16:11:28 -0000 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 Received: (qmail 14150 invoked by uid 89); 15 Jan 2014 16:11:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Jan 2014 16:11:27 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0FGBQ1u032176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 Jan 2014 11:11:26 -0500 Received: from barimba (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0FGBO91029254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 15 Jan 2014 11:11:25 -0500 From: Tom Tromey To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [RFC 00/32] clean up target delegation References: <1389640367-5571-1-git-send-email-tromey@redhat.com> <52D6852E.6080400@redhat.com> Date: Wed, 15 Jan 2014 16:11:00 -0000 In-Reply-To: <52D6852E.6080400@redhat.com> (Pedro Alves's message of "Wed, 15 Jan 2014 12:55:10 +0000") Message-ID: <87wqi1rzrn.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-01/txt/msg00513.txt.bz2 >>>>> "Pedro" == Pedro Alves writes: Pedro> For a couple, I think the simplest yet would be to change their Pedro> respective macros/functions to return the field in the topmost target: [...] I started implementing the easy bits but then I realized that the debug target puts a wrinkle into this. For instance, inheriting to_shortname is needed when target debug is active. We discussed before that it would be nice to get rid of the debug target. That's a reasonable amount of typing, though ... there's ~80 target functions that are just #defines in target.h. It sure would be nice to automate this as well, but I didn't really see a reasonable way. It looks like a second round of target cleanups will be needed. Pedro> Actually, it seems to be that most, if not all, hacks^W uses Pedro> of target_shortname are wrong, in that they want to know the Pedro> name of the process_stratum target, not the topmost target. Wow, I had no idea about this. What hacks! I filed a bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16454 Tom