aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-07-04 01:27:25 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-07-04 01:27:25 +0000
commit100f2e98f84dd197660e5b656e7bd7fceaf0729e (patch)
treec9b8b9772eecebecadf275313d9b43865dd3a876 /gdb
parente53a5a69d723903f5b35616b075560e966b59f53 (diff)
downloadgdb-100f2e98f84dd197660e5b656e7bd7fceaf0729e.zip
gdb-100f2e98f84dd197660e5b656e7bd7fceaf0729e.tar.gz
gdb-100f2e98f84dd197660e5b656e7bd7fceaf0729e.tar.bz2
* remote-vx.c (vx_add_symbols): Fix compilation error.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/remote-vx.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 35a6316..56e2864 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-03 Joel Brobecker <brobecker@gnat.com>
+
+ * remote-vx.c (vx_add_symbols): Fix compilation error.
+
2003-07-03 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (REGISTER_NAME): Do not supply a default.
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index b3fb7f2..d21025c 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;