diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-04-17 11:14:21 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-04-17 11:14:21 +0000 |
commit | f7d2f538186f0b4f59b14d8da9de0f6259d45484 (patch) | |
tree | 3d5a7ac5d7ba64381a887c926f8ad4fc1591b4a5 /sim/common/run.c | |
parent | 1ad886c9280e0ba6c567a88cab30a0fa94edf517 (diff) | |
download | gdb-f7d2f538186f0b4f59b14d8da9de0f6259d45484.zip gdb-f7d2f538186f0b4f59b14d8da9de0f6259d45484.tar.gz gdb-f7d2f538186f0b4f59b14d8da9de0f6259d45484.tar.bz2 |
* run.c (main): Check return value of sim_open.
Diffstat (limited to 'sim/common/run.c')
-rw-r--r-- | sim/common/run.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/run.c b/sim/common/run.c index 6740f69..15497ec 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -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); |