gdbserver/linux-low: use std::list to store pending signals
[deliverable/binutils-gdb.git] / gdb / elfread.c
index 4318ebf9eb9b9ea5ef9b66f6f1905d01da555f98..75bdd75250b11cf56ad26ad8552e0981056a95b2 100644 (file)
@@ -118,7 +118,9 @@ elf_symfile_segments (bfd *abfd)
     data->segments.emplace_back (segments[i]->p_vaddr, segments[i]->p_memsz);
 
   num_sections = bfd_count_sections (abfd);
-  data->segment_info = XCNEWVEC (int, num_sections);
+
+  /* All elements are initialized to 0 (map to no segment).  */
+  data->segment_info.resize (num_sections);
 
   for (i = 0, sect = abfd->sections; sect != NULL; i++, sect = sect->next)
     {
This page took 0.024849 seconds and 4 git commands to generate.