forked from Imagelibrary/binutils-gdb
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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user