if (! program_loaded) error ("No program loaded.");
if (exec_file == 0 || exec_bfd == 0) warning ("No executable file specified."); if (!program_loaded) warning ("No program loaded.");
gdbsim_create_inferior (exec_file, args, env)     char *exec_file;     char *args;     char **env;{  int len;  char *arg_buf,**argv;  CORE_ADDR entry_pt;  if (! program_loaded)    error ("No program loaded.");  if (sr_get_debug ())    printf_filtered ("gdbsim_create_inferior: exec_file \"%s\", args \"%s\"\n",      exec_file, args);  if (exec_file == 0 || exec_bfd == 0)   error ("No exec file specified.");  entry_pt = (CORE_ADDR) bfd_get_start_address (exec_bfd);  gdbsim_kill ();	   remove_breakpoints ();  init_wait_for_inferior ();  len = 5 + strlen (exec_file) + 1 + strlen (args) + 1 + /*slop*/ 10;  arg_buf = (char *) alloca (len);  arg_buf[0] = '\0';  strcat (arg_buf, exec_file);  strcat (arg_buf, " ");  strcat (arg_buf, args);  argv = buildargv (arg_buf);  make_cleanup (freeargv, (char *) argv);  sim_create_inferior (entry_pt, argv, env);  inferior_pid = 42;  insert_breakpoints ();	/* Needed to get correct instruction in cache */  proceed (entry_pt, TARGET_SIGNAL_DEFAULT, 0);}