From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23904 invoked by alias); 26 Apr 2008 13:42:44 -0000 Received: (qmail 23891 invoked by uid 22791); 26 Apr 2008 13:42:42 -0000 X-Spam-Check-By: sourceware.org Received: from host0.dyn.jankratochvil.net (HELO host0.dyn.jankratochvil.net) (89.250.240.59) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 26 Apr 2008 13:42:24 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.2/8.14.1) with ESMTP id m3QDgKGM017029 for ; Sat, 26 Apr 2008 15:42:20 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.2/8.14.2/Submit) id m3QDgJC0017028 for gdb-patches@sourceware.org; Sat, 26 Apr 2008 15:42:19 +0200 Date: Sat, 26 Apr 2008 16:05:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: [cancel] Re: [patch] Parent dirs of non-existing CU current dirs Message-ID: <20080426134219.GA16932@host0.dyn.jankratochvil.net> References: <20080426131556.GA15844@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080426131556.GA15844@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.17 (2007-11-01) 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: 2008-04/txt/msg00593.txt.bz2 Hi, please disregard the previous letter. One cannot easily trim `..'s as besides of forgotten `.' one cannot expect where the parent directory points as the previous directory may have been a symlink to a directory. There really should exist the empty directories referencing their parents. Sorry, Jan On Sat, 26 Apr 2008 15:15:56 +0200, Jan Kratochvil wrote: > Hi, > > (gdb) up > #1 0x00007f79042e1ee4 in PR_WaitCondVar (cvar=0x14196f0, timeout=4294967295) > at ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c:405 > 405 ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c: No such file or directory. > in ../../../mozilla/nsprpub/pr/src/pthreads/ptsynch.c > > /usr/lib/debug/lib64/libnspr4.so.debug > <0>: Abbrev Number: 1 (DW_TAG_compile_unit) > <11> DW_AT_name : (indirect string, offset: 0x7d): ../.././mozilla/nsprpub/pr/src/prvrsion.c > <15> DW_AT_comp_dir : (indirect string, offset: 0x14c): /usr/src/debug/nspr-4.7.0.99.2/pr/src > > ls: cannot access /usr/src/debug/nspr-4.7.0.99.2/pr/src/../.././mozilla/nsprpub/pr/src/prvrsion.c: No such file or directory > ls: cannot access /usr/src/debug/nspr-4.7.0.99.2/pr/src: No such file or directory > -rw-r--r-- 1 root root 4715 2004-04-25 11:00 /usr/src/debug/nspr-4.7.0.99.2/./mozilla/nsprpub/pr/src/prvrsion.c > -rw-r--r-- 1 root root 4715 2004-04-25 11:00 /usr/src/debug/nspr-4.7.0.99.2/mozilla/nsprpub/pr/src/prvrsion.c > > We should not insist the current directory of CU exists as it may be omitted if > it would be empty. The other opinion may be there is a bug in the debuginfo > generator and the empty directories should still exist there. One may also > normalize the directories listed in the debuginfo files. > > No regressions on x86_64-fedora-9. > > > Regards, > Jan > 2008-04-26 Jan Kratochvil > > Find sources in parent dirs of non-existing CU current dirs. > * defs.h (gdb_trim_dir_parents): New prototype. > * utils.c (gdb_trim_dir_parents): New function. > * source.c (openp): Call GDB_TRIM_DIR_PARENTS. > > 2008-04-26 Jan Kratochvil > > * gdb.base/nodir.exp, gdb.base/nodir.c: New files.