mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* run.c (main): Check return value of sim_open.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
|
Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* run.c (main): Check return value of sim_open.
|
||||||
|
|
||||||
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
|
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
|
||||||
(sim_main_headers): Add sim-trace.h.
|
(sim_main_headers): Add sim-trace.h.
|
||||||
* run.c (exec_bfd, target_byte_order): Delete.
|
* run.c (exec_bfd, target_byte_order): Delete.
|
||||||
|
@ -198,6 +198,8 @@ main (ac, av)
|
|||||||
/* Ensure that any run-time initialisation that needs to be
|
/* Ensure that any run-time initialisation that needs to be
|
||||||
performed by the simulator can occur. */
|
performed by the simulator can occur. */
|
||||||
sd = sim_open (SIM_OPEN_STANDALONE, sim_argv);
|
sd = sim_open (SIM_OPEN_STANDALONE, sim_argv);
|
||||||
|
if (sd == 0)
|
||||||
|
exit (1);
|
||||||
|
|
||||||
if (sim_load (sd, name, abfd, 0) == SIM_RC_FAIL)
|
if (sim_load (sd, name, abfd, 0) == SIM_RC_FAIL)
|
||||||
exit (1);
|
exit (1);
|
||||||
|
Reference in New Issue
Block a user