{
char *tmp;
char *type;
- if (STREQ (LOADTYPES, "")) {
+
+ if (current_monitor == 0x0)
+ return;
+
+ if (STREQ (LOADTYPES, "")) {
error ("No loadtype set");
return;
}
{
char *tmp;
char *type;
+
+ if (current_monitor == 0x0)
+ return;
+
if (STREQ (LOADPROTOS, "")) {
error ("No load protocols set");
return;
monitor_load_srec(file, 0); /* if from a binary */
}
- if (STREQ (loadtype_str, "ascii-srec")) { /* load an srecord file */
+ if (STREQ (loadtype_str, "none")) { /* load an srecord by converting */
+ error ("Unimplemented");
+ }
+
+ if (STREQ (loadproto_str, "none")) { /* load an srecord file */
monitor_load_ascii_srec(file, fromtty); /* if from a binary */
}
- if (STREQ (loadtype_str, "xmodem-srec")) { /* load an srecord using the */
+ if (STREQ (loadproto_str, "xmodem")) { /* load an srecord using the */
monitor_load_srec(file, XMODEM);
}
}