ऑब्जेक्ट फ़ाइलों के मूल नाम DWARF डिबगिंग जानकारी में संग्रहीत नहीं हैं।
प्रत्येक ऑब्जेक्ट फ़ाइल में .debug_info
अनुभाग में DW_TAG_compile_unit
प्रविष्टि है। इस प्रविष्टि में "प्राथमिक स्रोत फ़ाइल का संदर्भ है जिसमें से संकलन इकाई व्युत्पन्न हुई", लेकिन ऑब्जेक्ट फ़ाइल का नाम नहीं है। The DWARF standard में उन गुणों की एक सूची शामिल है जिन्हें प्रत्येक संकलन इकाई (अनुभाग 3.1.1, पृष्ठ संख्या 44, पीडीएफ पृष्ठ 58) के लिए संग्रहीत किया जा सकता है।
आप जानकारी है कि निम्न आदेश के साथ संग्रहीत किया जाता है देख सकते हैं:
$ readelf --debug-dump=info --dwarf-depth=1 hw
आउटपुट:
Contents of the .debug_info section:
<some compilation units removed>
Compilation Unit @ offset 0x133:
Length: 0x8b (32-bit)
Version: 4
Abbrev Offset: 0x64
Pointer Size: 4
<0><13e>: Abbrev Number: 1 (DW_TAG_compile_unit)
<13f> DW_AT_producer : (indirect string, offset: 0x131): GNU C11 5.3.0 -mtune=generic -march=pentiumpro -g
<143> DW_AT_language : 12 (ANSI C99)
<144> DW_AT_name : (indirect string, offset: 0x163): hw.c
<148> DW_AT_comp_dir : (indirect string, offset: 0x168): /home/mikel/src/hw
<14c> DW_AT_low_pc : 0x80483db
<150> DW_AT_high_pc : 0x2e
<154> DW_AT_stmt_list : 0xea
<1><158>: ...
<some compilation units removed>
स्रोत
2016-04-13 14:45:10