From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27181 invoked by alias); 4 Sep 2013 10:48:48 -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 27172 invoked by uid 89); 4 Sep 2013 10:48:47 -0000 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, 04 Sep 2013 10:48:47 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com 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 r84AmhwN000888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Sep 2013 06:48:43 -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 r84Amf6m025852; Wed, 4 Sep 2013 06:48:42 -0400 Message-ID: <52271009.50805@redhat.com> Date: Wed, 04 Sep 2013 10:48:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Jan Kratochvil CC: Doug Evans , gdb-patches@sourceware.org Subject: Re: [commit+7.6.1] [patch] [7.6.1] Fix argv[0] symlink regression (PR 15415) References: <20130826182111.GA19509@host2.jankratochvil.net> <21019.47767.404597.352962@ruffy.mtv.corp.google.com> <20130827140915.GA17861@host2.jankratochvil.net> <21022.10862.436924.879667@ruffy.mtv.corp.google.com> <20130828180359.GB4770@host2.jankratochvil.net> In-Reply-To: <20130828180359.GB4770@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-09/txt/msg00126.txt.bz2 It seems this patch introduces some output inconsistency (only tried mainline): $ ./gdb ... (gdb) file ./gdb Reading symbols from /home/pedro/gdb/mygit/build/gdb/gdb...done. Setting up the environment for debugging gdb. (top-gdb) info inferiors Num Description Executable * 1 /home/pedro/gdb/mygit/build/gdb/./gdb (top-gdb) Note "gdb/gdb" vs "gdb/./gdb". (top-gdb) file gdbserver/../gdb Load new symbol table from "/home/pedro/gdb/mygit/build/gdb/gdb"? (y or n) y Reading symbols from /home/pedro/gdb/mygit/build/gdb/gdb...done. (top-gdb) info inferiors Num Description Executable * 1 /home/pedro/gdb/mygit/build/gdb/gdbserver/../gdb (top-gdb) Note ".../gdb/gdb" vs ".../gdb/gdbserver/../gdb". I tried your new series at , and seems there's still some inconsistency: (gdb) file ./gdb Reading symbols from /home/pedro/gdb/mygit/build/gdb/./gdb...done. Setting up the environment for debugging gdb. (top-gdb) info inferiors Num Description Executable * 1 /home/pedro/gdb/mygit/build/gdb/./gdb (top-gdb) info files Symbols from "/home/pedro/gdb/mygit/build/gdb/./gdb". Local exec file: `/home/pedro/gdb/mygit/build/gdb/./gdb', file type elf64-x86-64. This one's consistent now, but then this one's odd: (top-gdb) file gdbserver/../gdb Load new symbol table from "/home/pedro/gdb/mygit/build/gdb/./gdb"? (y or n) y Reading symbols from /home/pedro/gdb/mygit/build/gdb/./gdb...done. (top-gdb) info inferiors Num Description Executable * 1 /home/pedro/gdb/mygit/build/gdb/gdbserver/../gdb (top-gdb) Hmm. It seems to only happen after having loaded "./gdb" first. This sounds like related to the filename handling in the gdb/bfd cache? GDB finds reuses the same bfd (as gdbserver/../gdb is the same file as the previous ./gdb), and then we printing the filename that had been associated with the bfd before, instead of the one that was specified in the second "file" ? -- Pedro Alves