gdb: make symfile_segment_data::segment_info an std::vector
[deliverable/binutils-gdb.git] / gdb / symfile.c
index 22793e736398c0da9c7eca22ecd85007c0a81a91..e6ec458504af9d7aa639d5a9a90a234e5af5e4fc 100644 (file)
@@ -747,7 +747,9 @@ default_symfile_segments (bfd *abfd)
   symfile_segment_data_up data (new symfile_segment_data);
 
   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.030741 seconds and 4 git commands to generate.