mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* run.c (main): Check return value of sim_open.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user