]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* remote-vx.c (vx_add_symbols): Fix compilation error.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 4 Jul 2003 01:30:30 +0000 (01:30 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 4 Jul 2003 01:30:30 +0000 (01:30 +0000)
gdb/ChangeLog
gdb/remote-vx.c

index 17b949b5a7b0e7099fc8eb71ce4d90e236a0b78e..5d8f38540e78bf3a95fabe09d7991c4ec33ca564 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-03  Joel Brobecker  <brobecker@gnat.com>
+
+       * remote-vx.c (vx_add_symbols): Fix compilation error.
+
 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
 
        * cli/cli-interp.c (cli_interpreter_resume): Update the
index b3fb7f2b7960d300c1764be3880fd9dd62788860..d21025c78a92907c332c80de7805ebf709ddd19c 100644 (file)
@@ -675,8 +675,11 @@ vx_add_symbols (char *name, int from_tty, CORE_ADDR text_addr,
      free_objfile it.  */
   objfile_to_front (objfile);
 
-  offs = (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
-  memcpy (offs, objfile->section_offsets, SIZEOF_SECTION_OFFSETS);
+  offs =
+    (struct section_offsets *)
+    alloca (SIZEOF_N_SECTION_OFFSETS (objfile->num_sections));
+  memcpy (offs, objfile->section_offsets,
+          SIZEOF_N_SECTION_OFFSETS (objfile->num_sections));
 
   ss.text_start = 0;
   ss.data_start = 0;