[Dwarf-Discuss] What does an "<artificial>" file name mean?
Wed Nov 9 14:35:26 GMT 2022
Yes, that makes perfect sense. I'm seeing other DWARF that is explainable only by LTO. For example, there are DW_AT_abstract_origin attributes that use DW_FORM_ref_addr to DIEs in other CUs, apparently to eliminate duplicate debug information.
Thanks, John D.
On 11/9/22 09:16, Hafiz Abid Qadeer wrote:
> On 09/11/2022 13:54, John DelSignore via Dwarf-Discuss wrote:
>> On Ubuntu 22.04, the Python 3.9 DWARF debug information has compilation units that look like this:
>> Compilation Unit @ offset 0x0:
>> Length: 0x1a14a (32-bit)
>> Version: 5
>> Unit Type: DW_UT_compile (1)
>> Abbrev Offset: 0x0
>> Pointer Size: 8
>> <0><c>: Abbrev Number: 27 (DW_TAG_compile_unit)
>> <d>?? DW_AT_producer : (indirect string, offset: 0x3a): GNU GIMPLE 11.2.0 -mtune=generic
>> -march=x86-64 -g -Og -Og -Og -fno-openmp -fno-openacc -fcf-protection=full -ffat-lto-objects
>> -fltrans -fno-PIE
>> <11>?? DW_AT_language : 12 (ANSI C99)
>> * <12>?? DW_AT_name : (indirect line string, offset: 0x0): <artificial>*
>> <16>?? DW_AT_comp_dir : (indirect line string, offset: 0xd):
>> <1a>?? DW_AT_low_pc : 0x422e96
>> <22>?? DW_AT_high_pc : 0xbf8c
>> <2a>?? DW_AT_stmt_list : 0x0
>> Notice that the DW_AT_name attribute for the CU is "<artificial>". The .debug_line info has the same
>> file name:
>> The Directory Table (offset 0x22, lines 11, columns 1):
>> Entry Name
>> 0 (indirect line string, offset: 0xd): /build/python3.9-gIt5iY/python3.9-3.9.14/build-debug
>> The File Name Table (offset 0x54, lines 23, columns 2):
>> Entry Dir Name
>> * 0 0 (indirect line string, offset: 0x0): <artificial>*
>> Does anyone know what an "<artificial>" file name is supposed to mean?
>> Thanks, John D.
> It probably could be lto produced unit.
> CAUTION: This email originated from outside of the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.
This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.
More information about the Dwarf-discuss