* symfile.c (generic_load): Check return code of target_write_memory.
This commit is contained in:
parent
40b647e9e2
commit
a6b6627ba2
|
@ -1,3 +1,7 @@
|
|||
Fri Jun 13 12:55:49 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||
|
||||
* symfile.c (generic_load): Check return code of target_write_memory.
|
||||
|
||||
Fri Jun 13 10:28:09 1997 Fred Fish <fnf@cygnus.com>
|
||||
|
||||
* config/i386/nm-linux.h: Enable prototypes that were #ifdef out.
|
||||
|
|
|
@ -1026,7 +1026,9 @@ generic_load (filename, from_tty)
|
|||
|
||||
bfd_get_section_contents (loadfile_bfd, s, buffer, 0, size);
|
||||
|
||||
target_write_memory (lma, buffer, size);
|
||||
if (target_write_memory (lma, buffer, size) != 0)
|
||||
error ("Memory access error while loading section %s.",
|
||||
bfd_get_section_name (loadfile_bfd, s));
|
||||
|
||||
do_cleanups (old_chain);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue