Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
authorJackie Smith Cashion <jsmith@redhat.com>
Wed, 10 Apr 1996 08:53:24 +0000 (08:53 +0000)
committerJackie Smith Cashion <jsmith@redhat.com>
Wed, 10 Apr 1996 08:53:24 +0000 (08:53 +0000)
* interp.c (sim_do_command): Complain if callback structure not
  initialised.

sim/mips/ChangeLog
sim/mips/interp.c

index f221324da06934383be46cb6faae5115552bcf17..f3ffe86591b0d72c862651d572e26673550b5dde 100644 (file)
@@ -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
index d1e9feb569dd37f98e8bb6f75d81939f94dd80b7..120044169f62cc4e86ac1cdb613b204dd15cc506 100644 (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";
 
This page took 0.029349 seconds and 4 git commands to generate.