mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* remote-vx.c (vx_add_symbols): Fix compilation error.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user