On 7/19/22 19:36, Tom de Vries via Gdb-patches wrote: > + if (debug_info_offset_seen.find (sect_offset (debug_info_offset)) > + != debug_info_offset_seen.end ()) > + { > + warning (_("Section .debug_aranges in %s has duplicate " > + "debug_info_offset %s, ignoring .debug_aranges."), > + objfile_name (objfile), > + sect_offset_str (sect_offset (debug_info_offset))); > + return false; > + } > + else > + debug_info_offset_seen.insert (sect_offset (debug_info_offset)); I realized that I could simplify this by just using the insert and then testing the result. Committed as attached. Thanks, - Tom