public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@redhat.com>
To: Rick Moseley <rmoseley@redhat.com>, frysk <frysk@sources.redhat.com>
Subject: include paths from dwfl
Date: Tue, 20 Mar 2007 18:52:00 -0000	[thread overview]
Message-ID: <46002D4F.3040607@redhat.com> (raw)

Rick,

This is from the dwarf3 spec:

10. include_directories (sequence of path names)
    The sequence contains an entry for each path that was searched for 
included source files in
    this compilation. (The paths include those directories specified 
explicitly by the user for the
    compiler to search and those the compiler searches without explicit 
direction). Each path
    entry is either a full path name or is relative to the current 
directory of the compilation. The
    current directory of the compilation is understood to be the first 
entry and is not explicitly
    represented. Each entry is a null-terminated string containing a 
full path name. The last entry
    is followed by a single null byte.


the address of the first path, aka the compilation directory, is 
obtained by lib.dw.DwflLine.getCompilationDirectory (see the cni code 
for the exact method).  The other paths just follow it, with an extra 
NIL terminator.

I think an extra cni method that returns either a List or File[] of 
File, created by scanning the C-strings, would give what is needed.

Andrew

                 reply	other threads:[~2007-03-20 18:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=46002D4F.3040607@redhat.com \
    --to=cagney@redhat.com \
    --cc=frysk@sources.redhat.com \
    --cc=rmoseley@redhat.com \
    /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).