(e7000pc_ops): Add e7000pc_setstopbits.
* remote-e7000.c (e7000_detach, e7000_resume,
e7000_xfer_inferior_memory, e7000_files_info, e7000_files_info,
e7000_insert_breakpoint, e7000_remove_breakpoint, e7000_kill):
Update function signature to match target vector.
* h8300-tdep.c (h8300_command, h8300h_command, h8300s_command):
h8500-tdep.c (small_command, big_command, medium_command,
compact_command): Update function signature to match add_cmd.
+Sat Dec 2 10:40:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * ser-e7kpc.c (e7000pc_setstopbits): New function.
+ (e7000pc_ops): Add e7000pc_setstopbits.
+
+ * remote-e7000.c (e7000_detach, e7000_resume,
+ e7000_xfer_inferior_memory, e7000_files_info, e7000_files_info,
+ e7000_insert_breakpoint, e7000_remove_breakpoint, e7000_kill):
+ Update function signature to match target vector.
+
+ * h8300-tdep.c (h8300_command, h8300h_command, h8300s_command):
+ h8500-tdep.c (small_command, big_command, medium_command,
+ compact_command): Update function signature to match add_cmd.
+
2000-12-01 Fernando Nasser <fnasser@redhat.com>
* p-exp.y: Define strncasecmp as strnicmp for MSVC.
}
static void
-h8300_command (int args, int from_tty)
+h8300_command (char *args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 0;
}
static void
-h8300h_command (int args, int from_tty)
+h8300h_command (char *args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 1;
}
static void
-h8300s_command (int args, int from_tty)
+h8300s_command (char *args, int from_tty)
{
extern int h8300smode;
extern int h8300hmode;
}
static void
-big_command (void)
+big_command (char *arg, int from_tty)
{
h8500_set_pointer_size (32);
code_size = 4;
}
static void
-medium_command (void)
+medium_command (char *arg, int from_tty)
{
h8500_set_pointer_size (32);
code_size = 4;
}
static void
-compact_command (void)
+compact_command (char *arg, int from_tty)
{
h8500_set_pointer_size (32);
code_size = 2;
}
static void
-small_command (void)
+small_command (char *arg, int from_tty)
{
h8500_set_pointer_size (16);
code_size = 2;
when you want to detach and do something else with your gdb. */
static void
-e7000_detach (int from_tty)
+e7000_detach (char *arg, int from_tty)
{
pop_target (); /* calls e7000_close to do the real work */
if (from_tty)
/* Tell the remote machine to resume. */
static void
-e7000_resume (int pid, int step, int sig)
+e7000_resume (int pid, int step, enum target_signal sigal)
{
if (step)
puts_e7000debug ("S\r");
}
static void
-e7000_files_info (void)
+e7000_files_info (struct target_ops *ops)
{
printf_unfiltered ("\tAttached to %s at %d baud.\n", dev_name, baudrate);
}
Returns the number of bytes transferred. */
static int
-e7000_xfer_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr,
+e7000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr,
int len, int write, struct target_ops *target)
{
if (write)
}
static void
-e7000_kill (char *args, int from_tty)
+e7000_kill (void)
{
}
{0};
static int
-e7000_insert_breakpoint (CORE_ADDR addr, unsigned char *shadow)
+e7000_insert_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
char buf[200];
}
static int
-e7000_remove_breakpoint (CORE_ADDR addr, unsigned char *shadow)
+e7000_remove_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
char buf[200];
return 0;
}
+static int
+e7000pc_setstopbits (serial_t scb, int rate)
+{
+ return 0;
+}
+
static int
e7000pc_write (serial_t scb, const char *str, int len)
{
e7000pc_print_tty_state,
e7000pc_noflush_set_tty_state,
e7000pc_setbaudrate,
+ e7000pc_setstopbits,
e7000pc_noop, /* wait for output to drain */
};