1 .\" Copyright (c) 2010 Joseph Koshy. All rights reserved.
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\" notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\" notice, this list of conditions and the following disclaimer in the
10 .\" documentation and/or other materials provided with the distribution.
12 .\" This software is provided by Joseph Koshy ``as is'' and
13 .\" any express or implied warranties, including, but not limited to, the
14 .\" implied warranties of merchantability and fitness for a particular purpose
15 .\" are disclaimed. in no event shall Joseph Koshy be liable
16 .\" for any direct, indirect, incidental, special, exemplary, or consequential
17 .\" damages (including, but not limited to, procurement of substitute goods
18 .\" or services; loss of use, data, or profits; or business interruption)
19 .\" however caused and on any theory of liability, whether in contract, strict
20 .\" liability, or tort (including negligence or otherwise) arising in any way
21 .\" out of the use of this software, even if advised of the possibility of
24 .\" $Id: dwarf_srcfiles.3 3640 2018-10-14 14:09:13Z jkoshy $
31 .Nd retrieve source file information
39 .Fa "char ***filenames"
40 .Fa "Dwarf_Signed *filenamecount"
41 .Fa "Dwarf_Error *err"
46 returns the source file names associated with a compilation unit.
47 Source file names are returned as an array of NUL-terminated strings.
51 should reference a DWARF debugging information entry descriptor with
52 source file information, see
56 should point to a location that will hold a pointer to the returned array
60 should point to a location that will hold the number of file names returned.
63 is not NULL, it will be used to store error information in case of an
66 The memory areas used for the file names and for array of pointers
67 being returned are managed by the DWARF(3) library.
68 The application should not attempt to directly free these memory areas.
69 Portable code should indicate that the memory areas are to be freed
78 In case of an error, it returns
86 .Bl -tag -width ".Bq Er DW_DLE_ARGUMENT"
87 .It Bq Er DW_DLE_ARGUMENT
94 .It Bq Er DW_DLE_NO_ENTRY
95 The compilation unit referenced by argument
97 does not have associated source file information.
98 .It Bq Er DW_DLE_MEMORY
99 An out of memory condition was encountered during the execution of
104 .Xr dwarf_dealloc 3 ,