import gdb-1999-07-07 pre reformat

This commit is contained in:
Jason Molenda
1999-07-07 17:31:57 +00:00
parent f04894943e
commit 9846de1bb5
66 changed files with 2327 additions and 2418 deletions

View File

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