* 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

@ -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);