From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31367 invoked by alias); 20 Mar 2007 18:52:03 -0000 Received: (qmail 31360 invoked by uid 22791); 20 Mar 2007 18:52:03 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,TW_DW X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Mar 2007 18:52:00 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l2KIpwI8005893 for ; Tue, 20 Mar 2007 14:51:58 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l2KIpvIY004352; Tue, 20 Mar 2007 14:51:57 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l2KIpuYZ008279; Tue, 20 Mar 2007 14:51:57 -0400 Message-ID: <46002D4F.3040607@redhat.com> Date: Tue, 20 Mar 2007 18:52:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.10 (X11/20070301) MIME-Version: 1.0 To: Rick Moseley , frysk Subject: include paths from dwfl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00239.txt.bz2 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