* run.c (main): Check return value of sim_open.

This commit is contained in:
David Edelsohn 1997-04-17 11:14:21 +00:00
parent 1ad886c928
commit f7d2f53818
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,7 @@
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.
(sim_main_headers): Add sim-trace.h.
* run.c (exec_bfd, target_byte_order): Delete.

View file

@ -198,6 +198,8 @@ main (ac, av)
/* Ensure that any run-time initialisation that needs to be
performed by the simulator can occur. */
sd = sim_open (SIM_OPEN_STANDALONE, sim_argv);
if (sd == 0)
exit (1);
if (sim_load (sd, name, abfd, 0) == SIM_RC_FAIL)
exit (1);