btrace: split record_btrace_step_thread
[deliverable/binutils-gdb.git] / gdb / exec.c
index f1b10496e2792247029779711da0d0b7512bfc0c..8ddb3df01d67737ae996c6b688e42cfabc4ea2c6 100644 (file)
@@ -475,7 +475,7 @@ build_section_table (struct bfd *some_bfd, struct target_section **start,
   count = bfd_count_sections (some_bfd);
   if (*start)
     xfree (* start);
-  *start = (struct target_section *) xmalloc (count * sizeof (**start));
+  *start = XNEWVEC (struct target_section, count);
   *end = *start;
   bfd_map_over_sections (some_bfd, add_to_section_table, (char *) end);
   if (*end > *start + count)
This page took 0.02453 seconds and 4 git commands to generate.