public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* include paths from dwfl
@ 2007-03-20 18:52 Andrew Cagney
  0 siblings, 0 replies; only message in thread
From: Andrew Cagney @ 2007-03-20 18:52 UTC (permalink / raw)
  To: Rick Moseley, frysk

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-20 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-20 18:52 include paths from dwfl Andrew Cagney

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).