This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Fix h8300 and h8500 compile problems
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Fix h8300 and h8500 compile problems
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 02 Dec 2000 22:29:36 +1100
Just FYI,
These targets had build problems. There is no active maintainer.
enjoy,
Andrew
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.
Index: h8300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/h8300-tdep.c,v
retrieving revision 1.3
diff -p -r1.3 h8300-tdep.c
*** h8300-tdep.c 2000/07/30 01:48:25 1.3
--- h8300-tdep.c 2000/12/02 11:34:40
*************** set_register_names (void)
*** 738,744 ****
}
static void
! h8300_command (int args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 0;
--- 738,744 ----
}
static void
! h8300_command (char *args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 0;
*************** h8300_command (int args, int from_tty)
*** 747,753 ****
}
static void
! h8300h_command (int args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 1;
--- 747,753 ----
}
static void
! h8300h_command (char *args, int from_tty)
{
extern int h8300hmode;
h8300hmode = 1;
*************** h8300h_command (int args, int from_tty)
*** 756,762 ****
}
static void
! h8300s_command (int args, int from_tty)
{
extern int h8300smode;
extern int h8300hmode;
--- 756,762 ----
}
static void
! h8300s_command (char *args, int from_tty)
{
extern int h8300smode;
extern int h8300hmode;
Index: h8500-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/h8500-tdep.c,v
retrieving revision 1.2
diff -p -r1.2 h8500-tdep.c
*** h8500-tdep.c 2000/07/30 01:48:25 1.2
--- h8500-tdep.c 2000/12/02 11:34:42
*************** h8500_set_pointer_size (int newsize)
*** 414,420 ****
}
static void
! big_command (void)
{
h8500_set_pointer_size (32);
code_size = 4;
--- 414,420 ----
}
static void
! big_command (char *arg, int from_tty)
{
h8500_set_pointer_size (32);
code_size = 4;
*************** big_command (void)
*** 422,428 ****
}
static void
! medium_command (void)
{
h8500_set_pointer_size (32);
code_size = 4;
--- 422,428 ----
}
static void
! medium_command (char *arg, int from_tty)
{
h8500_set_pointer_size (32);
code_size = 4;
*************** medium_command (void)
*** 430,436 ****
}
static void
! compact_command (void)
{
h8500_set_pointer_size (32);
code_size = 2;
--- 430,436 ----
}
static void
! compact_command (char *arg, int from_tty)
{
h8500_set_pointer_size (32);
code_size = 2;
*************** compact_command (void)
*** 438,444 ****
}
static void
! small_command (void)
{
h8500_set_pointer_size (16);
code_size = 2;
--- 438,444 ----
}
static void
! small_command (char *arg, int from_tty)
{
h8500_set_pointer_size (16);
code_size = 2;
Index: remote-e7000.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-e7000.c,v
retrieving revision 1.10
diff -p -r1.10 remote-e7000.c
*** remote-e7000.c 2000/10/30 21:50:57 1.10
--- remote-e7000.c 2000/12/02 11:34:46
*************** e7000_close (int quitting)
*** 700,706 ****
when you want to detach and do something else with your gdb. */
static void
! e7000_detach (int from_tty)
{
pop_target (); /* calls e7000_close to do the real work */
if (from_tty)
--- 700,706 ----
when you want to detach and do something else with your gdb. */
static void
! e7000_detach (char *arg, int from_tty)
{
pop_target (); /* calls e7000_close to do the real work */
if (from_tty)
*************** e7000_detach (int from_tty)
*** 710,716 ****
/* Tell the remote machine to resume. */
static void
! e7000_resume (int pid, int step, int sig)
{
if (step)
puts_e7000debug ("S\r");
--- 710,716 ----
/* Tell the remote machine to resume. */
static void
! e7000_resume (int pid, int step, enum target_signal sigal)
{
if (step)
puts_e7000debug ("S\r");
*************** e7000_prepare_to_store (void)
*** 1062,1068 ****
}
static void
! e7000_files_info (void)
{
printf_unfiltered ("\tAttached to %s at %d baud.\n", dev_name, baudrate);
}
--- 1062,1068 ----
}
static void
! e7000_files_info (struct target_ops *ops)
{
printf_unfiltered ("\tAttached to %s at %d baud.\n", dev_name, baudrate);
}
*************** fast_but_for_the_pause_e7000_read_inferi
*** 1473,1479 ****
Returns the number of bytes transferred. */
static int
! e7000_xfer_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr,
int len, int write, struct target_ops *target)
{
if (write)
--- 1473,1479 ----
Returns the number of bytes transferred. */
static int
! e7000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr,
int len, int write, struct target_ops *target)
{
if (write)
*************** e7000_xfer_inferior_memory (CORE_ADDR me
*** 1485,1491 ****
}
static void
! e7000_kill (char *args, int from_tty)
{
}
--- 1485,1491 ----
}
static void
! e7000_kill (void)
{
}
*************** static CORE_ADDR breakaddr[MAX_BREAKPOIN
*** 1696,1702 ****
{0};
static int
! e7000_insert_breakpoint (CORE_ADDR addr, unsigned char *shadow)
{
int i;
char buf[200];
--- 1696,1702 ----
{0};
static int
! e7000_insert_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
char buf[200];
*************** e7000_insert_breakpoint (CORE_ADDR addr,
*** 1739,1745 ****
}
static int
! e7000_remove_breakpoint (CORE_ADDR addr, unsigned char *shadow)
{
int i;
char buf[200];
--- 1739,1745 ----
}
static int
! e7000_remove_breakpoint (CORE_ADDR addr, char *shadow)
{
int i;
char buf[200];
Index: ser-e7kpc.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-e7kpc.c,v
retrieving revision 1.3
diff -p -r1.3 ser-e7kpc.c
*** ser-e7kpc.c 2000/07/30 01:48:27 1.3
--- ser-e7kpc.c 2000/12/02 11:34:46
*************** e7000pc_setbaudrate (serial_t scb, int r
*** 416,421 ****
--- 416,427 ----
}
static int
+ e7000pc_setstopbits (serial_t scb, int rate)
+ {
+ return 0;
+ }
+
+ static int
e7000pc_write (serial_t scb, const char *str, int len)
{
dosasync_write (scb->fd, str, len);
*************** static struct serial_ops e7000pc_ops =
*** 445,450 ****
--- 451,457 ----
e7000pc_print_tty_state,
e7000pc_noflush_set_tty_state,
e7000pc_setbaudrate,
+ e7000pc_setstopbits,
e7000pc_noop, /* wait for output to drain */
};