From 100f2e98f84dd197660e5b656e7bd7fceaf0729e Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 4 Jul 2003 01:27:25 +0000 Subject: [PATCH] * remote-vx.c (vx_add_symbols): Fix compilation error. --- gdb/ChangeLog | 4 ++++ gdb/remote-vx.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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; -- 2.30.2