Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: gdb-patches@sourceware.org
Subject: [cancel] Re: [patch] Parent dirs of non-existing CU current dirs
Date: Sat, 26 Apr 2008 16:05:00 -0000	[thread overview]
Message-ID: <20080426134219.GA16932@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <20080426131556.GA15844@host0.dyn.jankratochvil.net>

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><b>: 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  <jan.kratochvil@redhat.com>
> 
> 	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  <jan.kratochvil@redhat.com>
> 
> 	* gdb.base/nodir.exp, gdb.base/nodir.c: New files.


      parent reply	other threads:[~2008-04-26 13:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-26 13:42 Jan Kratochvil
2008-04-26 15:24 ` Mark Kettenis
2008-04-26 16:20   ` [ot] Content-Transfer-Encoding here [Re: [patch] Parent dirs of non-existing CU current dirs] Jan Kratochvil
2008-04-26 16:05 ` Jan Kratochvil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080426134219.GA16932@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox