Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>

* interp.c (sim_do_command): Complain if callback structure not
 	initialised.
This commit is contained in:
Jackie Smith Cashion
1996-04-10 08:53:24 +00:00
parent b7fce5bec1
commit 8b554809c0
2 changed files with 10 additions and 0 deletions

View File

@@ -1235,6 +1235,11 @@ sim_do_command (cmd)
{
struct t_sim_command *cptr;
if (callback == NULL) {
fprintf(stderr,"Simulator not enabled: \"target sim\" should be used to activate\n");
return;
}
if (!(cmd && *cmd != '\0'))
cmd = "help";