aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1994-11-18 06:38:23 +0000
committerRob Savoye <rob@cygnus>1994-11-18 06:38:23 +0000
commit3f9ef4ffe974cc974e462e057ce7412dbdf7ea59 (patch)
treeee2ba642d13daa8b283221d62d1612d0d05be011 /gdb
parent9f9f94aa0930f4981532e953b54cd028c0a556c6 (diff)
downloadgdb-3f9ef4ffe974cc974e462e057ce7412dbdf7ea59.zip
gdb-3f9ef4ffe974cc974e462e057ce7412dbdf7ea59.tar.gz
gdb-3f9ef4ffe974cc974e462e057ce7412dbdf7ea59.tar.bz2
* monitor.[ch], w89k-rom.c, op50n-rom.c, idp-rom.c: Add support
for two variables used to control the load protocol and conversion type.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/monitor.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index f4139b9..031c0e3 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -109,7 +109,11 @@ set_loadtype_command (ignore, from_tty, c)
{
char *tmp;
char *type;
- if (STREQ (LOADTYPES, "")) {
+
+ if (current_monitor == 0x0)
+ return;
+
+ if (STREQ (LOADTYPES, "")) {
error ("No loadtype set");
return;
}
@@ -141,6 +145,10 @@ set_loadproto_command (ignore, from_tty, c)
{
char *tmp;
char *type;
+
+ if (current_monitor == 0x0)
+ return;
+
if (STREQ (LOADPROTOS, "")) {
error ("No load protocols set");
return;
@@ -1056,11 +1064,15 @@ monitor_load (file, fromtty)
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);
}
}