aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorJackie Smith Cashion <jsmith@redhat.com>1996-04-10 08:53:24 +0000
committerJackie Smith Cashion <jsmith@redhat.com>1996-04-10 08:53:24 +0000
commit8b554809c07fb6e177dfdac4a4a1d6e622edb89d (patch)
tree5e7e346b354fe50254b6d261e8107d43d56c35ac /sim/mips
parentb7fce5bec1d37512a9ee108a225a3cbbafbe7533 (diff)
downloadgdb-8b554809c07fb6e177dfdac4a4a1d6e622edb89d.zip
gdb-8b554809c07fb6e177dfdac4a4a1d6e622edb89d.tar.gz
gdb-8b554809c07fb6e177dfdac4a4a1d6e622edb89d.tar.bz2
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.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog5
-rw-r--r--sim/mips/interp.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index f221324..f3ffe86 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -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
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index d1e9feb..1200441 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -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";