From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19996 invoked by alias); 15 Mar 2013 16:22:43 -0000 Received: (qmail 19981 invoked by uid 22791); 15 Mar 2013 16:22:42 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Fri, 15 Mar 2013 16:22:32 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2FGMTlf010157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Mar 2013 12:22:30 -0400 Received: from host2.jankratochvil.net (ovpn-116-42.ams2.redhat.com [10.36.116.42]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r2FGMPBW025783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 15 Mar 2013 12:22:28 -0400 Date: Fri, 15 Mar 2013 16:28:00 -0000 From: Jan Kratochvil To: Aleksandar Ristovski Cc: "gdb-patches@sourceware.org" Subject: Re: [draft patch 0/6] Split FYI and some review notes Message-ID: <20130315162225.GA1048@host2.jankratochvil.net> References: <51278984.3070208@qnx.com> <20130310210734.GA21130@host2.jankratochvil.net> <51434041.4080309@qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51434041.4080309@qnx.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: 2013-03/txt/msg00672.txt.bz2 On Fri, 15 Mar 2013 16:37:37 +0100, Aleksandar Ristovski wrote: > Thinking about this, we have to do a real name on this as maps/smaps > contain name as requested initially, not pathname as resolved. > > While we can determine entry that corresponds to the given l_ld, the > name sent to gdb needs to be realname as that is what gdb expects. Name sent to gdb is from r_debug->link_map->l_name, gdbserver already sends it that way and everyone seems to be fine with it /proc/PID/maps name should be IMO really ignored, it has no use for anything if I have not forgot about something. What do you want to use /proc/PID/maps name for? Maybe gdbserver should transform somehow the name from r_debug or use the name fro /proc/PID/maps intead etc. but that would be completely unrelated new patch. Jan