1 /* Remote debugging interface to m32r and mon2000 ROM monitors for GDB,
3 Copyright 1996, 1997, 1998, 1999, 2000, 2001
4 Free Software Foundation, Inc.
6 Adapted by Michael Snyder of Cygnus Support.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA. */
25 /* This module defines communication with the Renesas m32r monitor */
35 #include "symfile.h" /* for generic load */
36 #include <time.h> /* for time_t */
37 #include "gdb_string.h"
38 #include "objfiles.h" /* for ALL_OBJFILES etc. */
39 #include "inferior.h" /* for write_pc() */
43 extern void report_transfer_performance (unsigned long, time_t, time_t);
46 * All this stuff just to get my host computer's IP address!
48 #include <sys/types.h>
49 #include <netdb.h> /* for hostent */
50 #include <netinet/in.h> /* for struct in_addr */
52 #include <arpa/inet.h> /* for inet_ntoa */
55 static char *board_addr
; /* user-settable IP address for M32R-EVA */
56 static char *server_addr
; /* user-settable IP address for gdb host */
57 static char *download_path
; /* user-settable path for SREC files */
64 #define ACCL_REGNUM 22
65 #define ACCH_REGNUM 23
69 * Function: m32r_load_1 (helper function)
73 m32r_load_section (bfd
*abfd
, asection
*s
, void *obj
)
75 unsigned int *data_count
= obj
;
76 if (s
->flags
& SEC_LOAD
)
78 bfd_size_type section_size
= bfd_section_size (abfd
, s
);
79 bfd_vma section_base
= bfd_section_lma (abfd
, s
);
80 unsigned int buffer
, i
;
82 *data_count
+= section_size
;
84 printf_filtered ("Loading section %s, size 0x%lx lma ",
85 bfd_section_name (abfd
, s
), section_size
);
86 print_address_numeric (section_base
, 1, gdb_stdout
);
87 printf_filtered ("\n");
88 gdb_flush (gdb_stdout
);
89 monitor_printf ("%s mw\r", paddr_nz (section_base
));
90 for (i
= 0; i
< section_size
; i
+= 4)
93 monitor_expect (" -> ", NULL
, 0);
94 bfd_get_section_contents (abfd
, s
, (char *) &buffer
, i
, 4);
95 monitor_printf ("%x\n", buffer
);
97 monitor_expect (" -> ", NULL
, 0);
98 monitor_printf ("q\n");
99 monitor_expect_prompt (NULL
, 0);
104 m32r_load_1 (void *dummy
)
108 bfd_map_over_sections ((bfd
*) dummy
, m32r_load_section
, &data_count
);
113 * Function: m32r_load (an alternate way to load)
117 m32r_load (char *filename
, int from_tty
)
121 unsigned int i
, data_count
= 0;
122 time_t start_time
, end_time
; /* for timing of download */
124 if (filename
== NULL
|| filename
[0] == 0)
125 filename
= get_exec_file (1);
127 abfd
= bfd_openr (filename
, 0);
129 error ("Unable to open file %s\n", filename
);
130 if (bfd_check_format (abfd
, bfd_object
) == 0)
131 error ("File is not an object file\n");
132 start_time
= time (NULL
);
134 for (s
= abfd
->sections
; s
; s
= s
->next
)
135 if (s
->flags
& SEC_LOAD
)
137 bfd_size_type section_size
= bfd_section_size (abfd
, s
);
138 bfd_vma section_base
= bfd_section_vma (abfd
, s
);
141 data_count
+= section_size
;
143 printf_filtered ("Loading section %s, size 0x%lx vma ",
144 bfd_section_name (abfd
, s
), section_size
);
145 print_address_numeric (section_base
, 1, gdb_stdout
);
146 printf_filtered ("\n");
147 gdb_flush (gdb_stdout
);
148 monitor_printf ("%x mw\r", section_base
);
149 for (i
= 0; i
< section_size
; i
+= 4)
151 monitor_expect (" -> ", NULL
, 0);
152 bfd_get_section_contents (abfd
, s
, (char *) &buffer
, i
, 4);
153 monitor_printf ("%x\n", buffer
);
155 monitor_expect (" -> ", NULL
, 0);
156 monitor_printf ("q\n");
157 monitor_expect_prompt (NULL
, 0);
160 if (!(catch_errors (m32r_load_1
, abfd
, "Load aborted!\n", RETURN_MASK_ALL
)))
162 monitor_printf ("q\n");
166 end_time
= time (NULL
);
167 printf_filtered ("Start address 0x%lx\n", bfd_get_start_address (abfd
));
168 report_transfer_performance (data_count
, start_time
, end_time
);
170 /* Finally, make the PC point at the start address */
172 write_pc (bfd_get_start_address (exec_bfd
));
174 inferior_ptid
= null_ptid
; /* No process now */
176 /* This is necessary because many things were based on the PC at the
177 time that we attached to the monitor, which is no longer valid
178 now that we have loaded new code (and just changed the PC).
179 Another way to do this might be to call normal_stop, except that
180 the stack may not be valid, and things would get horribly
183 clear_symtab_users ();
187 m32r_load_gen (char *filename
, int from_tty
)
189 generic_load (filename
, from_tty
);
192 static void m32r_open (char *args
, int from_tty
);
193 static void mon2000_open (char *args
, int from_tty
);
195 /* This array of registers needs to match the indexes used by GDB. The
196 whole reason this exists is because the various ROM monitors use
197 different names than GDB does, and don't support all the registers
198 either. So, typing "info reg sp" becomes an "A7". */
200 static char *m32r_regnames
[] =
201 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
202 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
203 "psw", "cbr", "spi", "spu", "bpc", "pc", "accl", "acch",
207 m32r_supply_register (char *regname
, int regnamelen
, char *val
, int vallen
)
210 int num_regs
= sizeof (m32r_regnames
) / sizeof (m32r_regnames
[0]);
212 for (regno
= 0; regno
< num_regs
; regno
++)
213 if (strncmp (regname
, m32r_regnames
[regno
], regnamelen
) == 0)
216 if (regno
>= num_regs
)
217 return; /* no match */
219 if (regno
== ACCL_REGNUM
)
220 { /* special handling for 64-bit acc reg */
221 monitor_supply_register (ACCH_REGNUM
, val
);
222 val
= strchr (val
, ':'); /* skip past ':' to get 2nd word */
224 monitor_supply_register (ACCL_REGNUM
, val
+ 1);
228 monitor_supply_register (regno
, val
);
229 if (regno
== PSW_REGNUM
)
231 unsigned long psw
= strtoul (val
, NULL
, 16);
232 char *zero
= "00000000", *one
= "00000001";
236 monitor_supply_register (SM_REGNUM
, (psw
& 0x80) ? one
: zero
);
239 /* Backup stack mode bit */
240 monitor_supply_register (BSM_REGNUM
, (psw
& 0x8000) ? one
: zero
);
243 /* Interrupt enable bit */
244 monitor_supply_register (IE_REGNUM
, (psw
& 0x40) ? one
: zero
);
247 /* Backup interrupt enable bit */
248 monitor_supply_register (BIE_REGNUM
, (psw
& 0x4000) ? one
: zero
);
251 /* Condition bit (carry etc.) */
252 monitor_supply_register (COND_REGNUM
, (psw
& 0x1) ? one
: zero
);
255 monitor_supply_register (CBR_REGNUM
, (psw
& 0x1) ? one
: zero
);
258 monitor_supply_register (BPC_REGNUM
, zero
); /* KLUDGE: (???????) */
261 monitor_supply_register (BCARRY_REGNUM
, zero
); /* KLUDGE: (??????) */
265 if (regno
== SPI_REGNUM
|| regno
== SPU_REGNUM
)
266 { /* special handling for stack pointer (spu or spi) */
267 unsigned long stackmode
= read_register (PSW_REGNUM
) & 0x80;
269 if (regno
== SPI_REGNUM
&& !stackmode
) /* SP == SPI */
270 monitor_supply_register (SP_REGNUM
, val
);
271 else if (regno
== SPU_REGNUM
&& stackmode
) /* SP == SPU */
272 monitor_supply_register (SP_REGNUM
, val
);
277 /* m32r RevC board monitor */
279 static struct target_ops m32r_ops
;
281 static char *m32r_inits
[] = { "\r", NULL
};
283 static struct monitor_ops m32r_cmds
;
286 init_m32r_cmds (void)
288 m32r_cmds
.flags
= MO_CLR_BREAK_USES_ADDR
| MO_REGISTER_VALUE_FIRST
;
289 m32r_cmds
.init
= m32r_inits
; /* Init strings */
290 m32r_cmds
.cont
= "go\r"; /* continue command */
291 m32r_cmds
.step
= "step\r"; /* single step */
292 m32r_cmds
.stop
= NULL
; /* interrupt command */
293 m32r_cmds
.set_break
= "%x +bp\r"; /* set a breakpoint */
294 m32r_cmds
.clr_break
= "%x -bp\r"; /* clear a breakpoint */
295 m32r_cmds
.clr_all_break
= "bpoff\r"; /* clear all breakpoints */
296 m32r_cmds
.fill
= "%x %x %x fill\r"; /* fill (start length val) */
297 m32r_cmds
.setmem
.cmdb
= "%x 1 %x fill\r"; /* setmem.cmdb (addr, value) */
298 m32r_cmds
.setmem
.cmdw
= "%x 1 %x fillh\r"; /* setmem.cmdw (addr, value) */
299 m32r_cmds
.setmem
.cmdl
= "%x 1 %x fillw\r"; /* setmem.cmdl (addr, value) */
300 m32r_cmds
.setmem
.cmdll
= NULL
; /* setmem.cmdll (addr, value) */
301 m32r_cmds
.setmem
.resp_delim
= NULL
; /* setmem.resp_delim */
302 m32r_cmds
.setmem
.term
= NULL
; /* setmem.term */
303 m32r_cmds
.setmem
.term_cmd
= NULL
; /* setmem.term_cmd */
304 m32r_cmds
.getmem
.cmdb
= "%x %x dump\r"; /* getmem.cmdb (addr, len) */
305 m32r_cmds
.getmem
.cmdw
= NULL
; /* getmem.cmdw (addr, len) */
306 m32r_cmds
.getmem
.cmdl
= NULL
; /* getmem.cmdl (addr, len) */
307 m32r_cmds
.getmem
.cmdll
= NULL
; /* getmem.cmdll (addr, len) */
308 m32r_cmds
.getmem
.resp_delim
= ": "; /* getmem.resp_delim */
309 m32r_cmds
.getmem
.term
= NULL
; /* getmem.term */
310 m32r_cmds
.getmem
.term_cmd
= NULL
; /* getmem.term_cmd */
311 m32r_cmds
.setreg
.cmd
= "%x to %%%s\r"; /* setreg.cmd (name, value) */
312 m32r_cmds
.setreg
.resp_delim
= NULL
; /* setreg.resp_delim */
313 m32r_cmds
.setreg
.term
= NULL
; /* setreg.term */
314 m32r_cmds
.setreg
.term_cmd
= NULL
; /* setreg.term_cmd */
315 m32r_cmds
.getreg
.cmd
= NULL
; /* getreg.cmd (name) */
316 m32r_cmds
.getreg
.resp_delim
= NULL
; /* getreg.resp_delim */
317 m32r_cmds
.getreg
.term
= NULL
; /* getreg.term */
318 m32r_cmds
.getreg
.term_cmd
= NULL
; /* getreg.term_cmd */
319 m32r_cmds
.dump_registers
= ".reg\r"; /* dump_registers */
320 m32r_cmds
.register_pattern
= "\\(\\w+\\) += \\([0-9a-fA-F]+\\b\\)"; /* register_pattern */
321 m32r_cmds
.supply_register
= m32r_supply_register
; /* supply_register */
322 m32r_cmds
.load_routine
= NULL
; /* load_routine (defaults to SRECs) */
323 m32r_cmds
.load
= NULL
; /* download command */
324 m32r_cmds
.loadresp
= NULL
; /* load response */
325 m32r_cmds
.prompt
= "ok "; /* monitor command prompt */
326 m32r_cmds
.line_term
= "\r"; /* end-of-line terminator */
327 m32r_cmds
.cmd_end
= NULL
; /* optional command terminator */
328 m32r_cmds
.target
= &m32r_ops
; /* target operations */
329 m32r_cmds
.stopbits
= SERIAL_1_STOPBITS
; /* number of stop bits */
330 m32r_cmds
.regnames
= m32r_regnames
; /* registers names */
331 m32r_cmds
.magic
= MONITOR_OPS_MAGIC
; /* magic */
332 } /* init_m32r_cmds */
335 m32r_open (char *args
, int from_tty
)
337 monitor_open (args
, &m32r_cmds
, from_tty
);
340 /* Mon2000 monitor (MSA2000 board) */
342 static struct target_ops mon2000_ops
;
343 static struct monitor_ops mon2000_cmds
;
346 init_mon2000_cmds (void)
348 mon2000_cmds
.flags
= MO_CLR_BREAK_USES_ADDR
| MO_REGISTER_VALUE_FIRST
;
349 mon2000_cmds
.init
= m32r_inits
; /* Init strings */
350 mon2000_cmds
.cont
= "go\r"; /* continue command */
351 mon2000_cmds
.step
= "step\r"; /* single step */
352 mon2000_cmds
.stop
= NULL
; /* interrupt command */
353 mon2000_cmds
.set_break
= "%x +bp\r"; /* set a breakpoint */
354 mon2000_cmds
.clr_break
= "%x -bp\r"; /* clear a breakpoint */
355 mon2000_cmds
.clr_all_break
= "bpoff\r"; /* clear all breakpoints */
356 mon2000_cmds
.fill
= "%x %x %x fill\r"; /* fill (start length val) */
357 mon2000_cmds
.setmem
.cmdb
= "%x 1 %x fill\r"; /* setmem.cmdb (addr, value) */
358 mon2000_cmds
.setmem
.cmdw
= "%x 1 %x fillh\r"; /* setmem.cmdw (addr, value) */
359 mon2000_cmds
.setmem
.cmdl
= "%x 1 %x fillw\r"; /* setmem.cmdl (addr, value) */
360 mon2000_cmds
.setmem
.cmdll
= NULL
; /* setmem.cmdll (addr, value) */
361 mon2000_cmds
.setmem
.resp_delim
= NULL
; /* setmem.resp_delim */
362 mon2000_cmds
.setmem
.term
= NULL
; /* setmem.term */
363 mon2000_cmds
.setmem
.term_cmd
= NULL
; /* setmem.term_cmd */
364 mon2000_cmds
.getmem
.cmdb
= "%x %x dump\r"; /* getmem.cmdb (addr, len) */
365 mon2000_cmds
.getmem
.cmdw
= NULL
; /* getmem.cmdw (addr, len) */
366 mon2000_cmds
.getmem
.cmdl
= NULL
; /* getmem.cmdl (addr, len) */
367 mon2000_cmds
.getmem
.cmdll
= NULL
; /* getmem.cmdll (addr, len) */
368 mon2000_cmds
.getmem
.resp_delim
= ": "; /* getmem.resp_delim */
369 mon2000_cmds
.getmem
.term
= NULL
; /* getmem.term */
370 mon2000_cmds
.getmem
.term_cmd
= NULL
; /* getmem.term_cmd */
371 mon2000_cmds
.setreg
.cmd
= "%x to %%%s\r"; /* setreg.cmd (name, value) */
372 mon2000_cmds
.setreg
.resp_delim
= NULL
; /* setreg.resp_delim */
373 mon2000_cmds
.setreg
.term
= NULL
; /* setreg.term */
374 mon2000_cmds
.setreg
.term_cmd
= NULL
; /* setreg.term_cmd */
375 mon2000_cmds
.getreg
.cmd
= NULL
; /* getreg.cmd (name) */
376 mon2000_cmds
.getreg
.resp_delim
= NULL
; /* getreg.resp_delim */
377 mon2000_cmds
.getreg
.term
= NULL
; /* getreg.term */
378 mon2000_cmds
.getreg
.term_cmd
= NULL
; /* getreg.term_cmd */
379 mon2000_cmds
.dump_registers
= ".reg\r"; /* dump_registers */
380 mon2000_cmds
.register_pattern
= "\\(\\w+\\) += \\([0-9a-fA-F]+\\b\\)"; /* register_pattern */
381 mon2000_cmds
.supply_register
= m32r_supply_register
; /* supply_register */
382 mon2000_cmds
.load_routine
= NULL
; /* load_routine (defaults to SRECs) */
383 mon2000_cmds
.load
= NULL
; /* download command */
384 mon2000_cmds
.loadresp
= NULL
; /* load response */
385 mon2000_cmds
.prompt
= "Mon2000>"; /* monitor command prompt */
386 mon2000_cmds
.line_term
= "\r"; /* end-of-line terminator */
387 mon2000_cmds
.cmd_end
= NULL
; /* optional command terminator */
388 mon2000_cmds
.target
= &mon2000_ops
; /* target operations */
389 mon2000_cmds
.stopbits
= SERIAL_1_STOPBITS
; /* number of stop bits */
390 mon2000_cmds
.regnames
= m32r_regnames
; /* registers names */
391 mon2000_cmds
.magic
= MONITOR_OPS_MAGIC
; /* magic */
392 } /* init_mon2000_cmds */
395 mon2000_open (char *args
, int from_tty
)
397 monitor_open (args
, &mon2000_cmds
, from_tty
);
400 /* Function: set_board_address
401 Tell the BootOne monitor what it's ethernet IP address is. */
404 m32r_set_board_address (char *args
, int from_tty
)
411 monitor_printf ("ulip %s\n", args
);
412 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
));
413 /* now parse the result for success */
416 error ("Requires argument (IP address for M32R-EVA board)");
419 /* Function: set_server_address
420 Tell the BootOne monitor what gdb's ethernet IP address is. */
423 m32r_set_server_address (char *args
, int from_tty
)
430 monitor_printf ("uhip %s\n", args
);
431 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
));
432 /* now parse the result for success */
435 error ("Requires argument (IP address of GDB's host computer)");
438 /* Function: set_download_path
439 Tell the BootOne monitor the default path for downloadable SREC files. */
442 m32r_set_download_path (char *args
, int from_tty
)
449 monitor_printf ("up %s\n", args
);
450 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
));
451 /* now parse the result for success */
454 error ("Requires argument (default path for downloadable SREC files)");
458 m32r_upload_command (char *args
, int from_tty
)
462 time_t start_time
, end_time
; /* for timing of download */
463 int resp_len
, data_count
= 0;
465 struct hostent
*hostent
;
466 struct in_addr inet_addr
;
468 /* first check to see if there's an ethernet port! */
469 monitor_printf ("ust\r");
470 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
));
471 if (!strchr (buf
, ':'))
472 error ("No ethernet connection!");
476 /* scan second colon in the output from the "ust" command */
477 char *myIPaddress
= strchr (strchr (buf
, ':') + 1, ':') + 1;
479 while (isspace (*myIPaddress
))
482 if (!strncmp (myIPaddress
, "0.0.", 4)) /* empty */
484 ("Please use 'set board-address' to set the M32R-EVA board's IP address.");
485 if (strchr (myIPaddress
, '('))
486 *(strchr (myIPaddress
, '(')) = '\0'; /* delete trailing junk */
487 board_addr
= xstrdup (myIPaddress
);
489 if (server_addr
== 0)
492 gethostname (buf
, sizeof (buf
));
494 hostent
= gethostbyname (buf
);
498 memcpy (&inet_addr
.s_addr
, hostent
->h_addr
,
499 sizeof (inet_addr
.s_addr
));
500 server_addr
= (char *) inet_ntoa (inet_addr
);
502 server_addr
= (char *) inet_ntoa (hostent
->h_addr
);
505 if (server_addr
== 0) /* failed? */
507 ("Need to know gdb host computer's IP address (use 'set server-address')");
510 if (args
== 0 || args
[0] == 0) /* no args: upload the current file */
511 args
= get_exec_file (1);
513 if (args
[0] != '/' && download_path
== 0)
515 if (current_directory
)
516 download_path
= xstrdup (current_directory
);
519 ("Need to know default download path (use 'set download-path')");
522 start_time
= time (NULL
);
523 monitor_printf ("uhip %s\r", server_addr
);
524 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
)); /* parse result? */
525 monitor_printf ("ulip %s\r", board_addr
);
526 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
)); /* parse result? */
528 monitor_printf ("up %s\r", download_path
); /* use default path */
530 monitor_printf ("up\r"); /* rooted filename/path */
531 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
)); /* parse result? */
533 if (strrchr (args
, '.') && !strcmp (strrchr (args
, '.'), ".srec"))
534 monitor_printf ("ul %s\r", args
);
535 else /* add ".srec" suffix */
536 monitor_printf ("ul %s.srec\r", args
);
537 resp_len
= monitor_expect_prompt (buf
, sizeof (buf
)); /* parse result? */
539 if (buf
[0] == 0 || strstr (buf
, "complete") == 0)
541 ("Upload file not found: %s.srec\nCheck IP addresses and download path.",
544 printf_filtered (" -- Ethernet load complete.\n");
546 end_time
= time (NULL
);
547 abfd
= bfd_openr (args
, 0);
549 { /* Download is done -- print section statistics */
550 if (bfd_check_format (abfd
, bfd_object
) == 0)
552 printf_filtered ("File is not an object file\n");
554 for (s
= abfd
->sections
; s
; s
= s
->next
)
555 if (s
->flags
& SEC_LOAD
)
557 bfd_size_type section_size
= bfd_section_size (abfd
, s
);
558 bfd_vma section_base
= bfd_section_lma (abfd
, s
);
561 data_count
+= section_size
;
563 printf_filtered ("Loading section %s, size 0x%lx lma ",
564 bfd_section_name (abfd
, s
), section_size
);
565 print_address_numeric (section_base
, 1, gdb_stdout
);
566 printf_filtered ("\n");
567 gdb_flush (gdb_stdout
);
569 /* Finally, make the PC point at the start address */
570 write_pc (bfd_get_start_address (abfd
));
571 report_transfer_performance (data_count
, start_time
, end_time
);
572 printf_filtered ("Start address 0x%lx\n", bfd_get_start_address (abfd
));
574 inferior_ptid
= null_ptid
; /* No process now */
576 /* This is necessary because many things were based on the PC at the
577 time that we attached to the monitor, which is no longer valid
578 now that we have loaded new code (and just changed the PC).
579 Another way to do this might be to call normal_stop, except that
580 the stack may not be valid, and things would get horribly
583 clear_symtab_users ();
587 _initialize_m32r_rom (void)
589 /* Initialize m32r RevC monitor target */
591 init_monitor_ops (&m32r_ops
);
593 m32r_ops
.to_shortname
= "m32r";
594 m32r_ops
.to_longname
= "m32r monitor";
595 m32r_ops
.to_load
= m32r_load_gen
; /* monitor lacks a download command */
596 m32r_ops
.to_doc
= "Debug via the m32r monitor.\n\
597 Specify the serial device it is connected to (e.g. /dev/ttya).";
598 m32r_ops
.to_open
= m32r_open
;
599 add_target (&m32r_ops
);
601 /* Initialize mon2000 monitor target */
602 init_mon2000_cmds ();
603 init_monitor_ops (&mon2000_ops
);
605 mon2000_ops
.to_shortname
= "mon2000";
606 mon2000_ops
.to_longname
= "Mon2000 monitor";
607 mon2000_ops
.to_load
= m32r_load_gen
; /* monitor lacks a download command */
608 mon2000_ops
.to_doc
= "Debug via the Mon2000 monitor.\n\
609 Specify the serial device it is connected to (e.g. /dev/ttya).";
610 mon2000_ops
.to_open
= mon2000_open
;
611 add_target (&mon2000_ops
);
614 (add_set_cmd ("download-path", class_obscure
, var_string
,
615 (char *) &download_path
,
616 "Set the default path for downloadable SREC files.",
617 &setlist
), &showlist
);
620 (add_set_cmd ("board-address", class_obscure
, var_string
,
621 (char *) &board_addr
,
622 "Set IP address for M32R-EVA target board.",
623 &setlist
), &showlist
);
626 (add_set_cmd ("server-address", class_obscure
, var_string
,
627 (char *) &server_addr
,
628 "Set IP address for download server (GDB's host computer).",
629 &setlist
), &showlist
);
631 add_com ("upload", class_obscure
, m32r_upload_command
,
632 "Upload the srec file via the monitor's Ethernet upload capability.");
634 add_com ("tload", class_obscure
, m32r_load
, "test upload command.");