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 | |
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')
-rw-r--r-- | sim/common/ChangeLog | 2 | ||||
-rw-r--r-- | sim/common/run.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 325a97f..2509f2b 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -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. 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); |