public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Sasha Da Rocha Pinheiro <darochapinhe@wisc.edu>
Cc: "elfutils-devel@sourceware.org" <elfutils-devel@sourceware.org>
Subject: Re: Relative path X full path
Date: Mon, 26 Mar 2018 19:15:00 -0000	[thread overview]
Message-ID: <20180326191539.GD9061@wildebeest.org> (raw)
In-Reply-To: <BY2PR06MB886F1B486DE3A99A55C64B7A6AD0@BY2PR06MB886.namprd06.prod.outlook.com>

Hi Sasha,

On Mon, Mar 26, 2018 at 04:45:13PM +0000, Sasha Da Rocha Pinheiro wrote:
> I have noticed that when we compile out-of-source, the paths returned
> from libdw are gonna be relative. Otherwise, they show up as full path.
> Have you noticed it?

This might be related to your last question. Relative paths might be
resolved against the DW_AT_comp_dir. So if that is missing the paths
might stay relative.

But could you give an example of some generated DWARF where you would
expect a specific libdw function to return an absolute/resolved path
instead of a relative path? It might depend in which function you are
using whether or not libdw expects you to construct the full path
yourself or whether it will "helpfully" try to resolve it for you.

Cheers,

Mark

      parent reply	other threads:[~2018-03-26 19:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-26 16:45 Sasha Da Rocha Pinheiro
2018-03-26 18:16 ` Milian Wolff
2018-03-26 19:12 ` Torsten Polle
2018-03-29 12:10   ` Mark Wielaard
2018-04-03 11:10     ` Mark Wielaard
2018-03-26 19:15 ` Mark Wielaard [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=20180326191539.GD9061@wildebeest.org \
    --to=mark@klomp.org \
    --cc=darochapinhe@wisc.edu \
    --cc=elfutils-devel@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).