import gdb-1999-09-08 snapshot
[deliverable/binutils-gdb.git] / gdb / remote-vx.c
index 8c09d2c011ce99f8e2f940b48c66357f78684cf0..4d7c6c92b7d7e14715d95d0747df49f2a6b2a3da 100644 (file)
@@ -708,12 +708,8 @@ vx_add_symbols (name, from_tty, text_addr, data_addr, bss_addr)
      free_objfile it.  */
   objfile_to_front (objfile);
 
-  offs = (struct section_offsets *)
-    alloca (sizeof (struct section_offsets)
-           + objfile->num_sections * sizeof (offs->offsets));
-  memcpy (offs, objfile->section_offsets,
-         sizeof (struct section_offsets)
-         + objfile->num_sections * sizeof (offs->offsets));
+  offs = (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
+  memcpy (offs, objfile->section_offsets, SIZEOF_SECTION_OFFSETS);
 
   ss.text_start = 0;
   ss.data_start = 0;
This page took 0.02531 seconds and 4 git commands to generate.