diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-07-07 17:31:57 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-07-07 17:31:57 +0000 |
commit | 9846de1bb5d61521885ef51fa6b99121ec1be577 (patch) | |
tree | 56c938421752cf160876766aaee7e729a8e47050 /sim/common/sim-model.c | |
parent | f04894943e847e4c9dec6a7a73b9e03a3c0aa90a (diff) | |
download | gdb-9846de1bb5d61521885ef51fa6b99121ec1be577.zip gdb-9846de1bb5d61521885ef51fa6b99121ec1be577.tar.gz gdb-9846de1bb5d61521885ef51fa6b99121ec1be577.tar.bz2 |
import gdb-1999-07-07 pre reformat
Diffstat (limited to 'sim/common/sim-model.c')
-rw-r--r-- | sim/common/sim-model.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/sim-model.c b/sim/common/sim-model.c index a126fb1..8037dcd 100644 --- a/sim/common/sim-model.c +++ b/sim/common/sim-model.c @@ -197,6 +197,13 @@ sim_model_init (SIM_DESC sd) /* Use the default model for the selected machine. The default model is the first one in the list. */ const MACH *mach = sim_mach_lookup_bfd_name (STATE_ARCHITECTURE (sd)->printable_name); + + if (mach == NULL) + { + sim_io_eprintf (sd, "unsupported machine `%s'\n", + STATE_ARCHITECTURE (sd)->printable_name); + return SIM_RC_FAIL; + } sim_model_set (sd, NULL, MACH_MODELS (mach)); } else |