From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8683 invoked by alias); 31 May 2013 13:27:54 -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 8046 invoked by uid 89); 31 May 2013 13:27:48 -0000 X-Spam-SWARE-Status: No, score=-8.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,TW_XS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 31 May 2013 13:27:47 +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 r4VDRkZr032152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 31 May 2013 09:27:46 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r4VDRidX018340; Fri, 31 May 2013 09:27:45 -0400 Message-ID: <51A8A550.9010007@redhat.com> Date: Fri, 31 May 2013 13:27:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [RFA 5/7 take 4] Improved linker-debugger interface References: <20130516144340.GA2105@blade.nx> <20130516144838.GF2105@blade.nx> <20130517185002.GA10447@host2.jankratochvil.net> <20130524083044.GC4602@blade.nx> <51A64E24.2020901@redhat.com> <20130530104346.GA6217@blade.nx> <51A789CF.2000302@redhat.com> <20130531132206.GB7409@blade.nx> In-Reply-To: <20130531132206.GB7409@blade.nx> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg01107.txt.bz2 On 05/31/2013 02:22 PM, Gary Benson wrote: > How about this: > > const char *name = probe_info[i].name; > char buf[32]; > > /* Fedora 17 and Red Hat Enterprise Linux 6.2-6.4 > shipped with an early version of the probes code in > which the probes' names were prefixed with "rtld_" > and the "map_failed" probe did not exist. The > locations of the probes are otherwise the same, so > we check for probes with prefixed names if probes > with unprefixed names are not present. */ > if (with_prefix) > { > xsnprintf (buf, sizeof (buf), "rtld_%s", name); > name = buf; > } > Looks great. Thanks! -- Pedro Alves