This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR debug/90981 Empty .debug_addr crashes -gdwarf-5 -gsplit-dwarf


On 6/26/19 2:06 PM, Mark Wielaard wrote:
> Even if there was no, or an empty address list we would try to generate
> and index for the .debug_addr section with -gdwarf-5 and -gsplit-dwarf.
> The skeleton DIE would also get a (dangling) DW_AT_addr_base in that case.
> 
> 	PR debug/90981
> 	* dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
> 	DW_AT_addr_base if there is actually a .debug_addr section with
> 	addresses.
> 	(output_addr_table): Add DWARF5 table index generation here after
> 	checking there are actually any addresses from...
> 	(dwarf2out_finish): ...here.
> 	* testsuite/g++.dg/pr90981.C: New test.
OK
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]