From 8b554809c07fb6e177dfdac4a4a1d6e622edb89d Mon Sep 17 00:00:00 2001 From: Jackie Smith Cashion Date: Wed, 10 Apr 1996 08:53:24 +0000 Subject: Wed Apr 10 09:51:38 1996 James G. Smith * interp.c (sim_do_command): Complain if callback structure not initialised. --- sim/mips/interp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sim/mips/interp.c') 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"; -- cgit v1.1