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:
parent
b7fce5bec1
commit
8b554809c0
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
||||
Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
|
||||
|
||||
* interp.c (Convert): Provide round-to-nearest and round-to-zero
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue