From: Joel Brobecker Date: Fri, 4 Jul 2003 01:27:25 +0000 (+0000) Subject: * remote-vx.c (vx_add_symbols): Fix compilation error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=100f2e98f84dd197660e5b656e7bd7fceaf0729e;p=binutils-gdb.git * remote-vx.c (vx_add_symbols): Fix compilation error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35a63165d35..56e28647a14 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-07-03 Joel Brobecker + + * remote-vx.c (vx_add_symbols): Fix compilation error. + 2003-07-03 Andrew Cagney * gdbarch.sh (REGISTER_NAME): Do not supply a default. diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c index b3fb7f2b796..d21025c78a9 100644 --- a/gdb/remote-vx.c +++ b/gdb/remote-vx.c @@ -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;