This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Tweeks for random ``broken'' targets
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Tweeks for random ``broken'' targets
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 05 Mar 2001 11:34:52 -0500
FYI,
The attatched patch tweeks the targets:
powerpc-eabi
powerpcle-eabi
mcore-elf
mcore-pe
i960-coff
so that they can be built using a --enable-gdb-build-warnings=,-Werror.
Andrew
2001-03-04 Andrew Cagney <ac131313@redhat.com>
* ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
* ocd.c (ocd_xfer_memory): Ditto.
* ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
* MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
buildable with ,-Werror.
* Makefile.in (symfile_h): Define.
(mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
* mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
* MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
,-Werror.
* dsrec.c (make_srec): Fix internal_error fmt arg.
* MAINTAINERS: Document i960-coff as buildable with ,-Werror.
Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.77
diff -p -r1.77 MAINTAINERS
*** MAINTAINERS 2001/03/03 03:34:27 1.77
--- MAINTAINERS 2001/03/05 16:30:04
*************** maintainer works with the native maintai
*** 83,89 ****
i386 --target=i386-elf,i386-aout ,-Werror
Mark Kettenis kettenis@gnu.org
! i960 (--target=i960-coff broken)
Maintenance only
ia64 (--target=ia64-elf broken)
--- 83,89 ----
i386 --target=i386-elf,i386-aout ,-Werror
Mark Kettenis kettenis@gnu.org
! i960 --target=i960-coff ,-Werror
Maintenance only
ia64 (--target=ia64-elf broken)
*************** maintainer works with the native maintai
*** 101,107 ****
m88k (?)
Maintenance only
! mcore (--target=mcore-elf,mcore-pe broken)
Maintenance only
mips --target=mips-elf,mips64-elf ,-Werror
--- 101,107 ----
m88k (?)
Maintenance only
! mcore --target=mcore-elf,mcore-pe ,-Werror
Maintenance only
mips --target=mips-elf,mips64-elf ,-Werror
*************** maintainer works with the native maintai
*** 113,125 ****
mn10300 --target=mn10300-elf ,-Werror
Andrew Cagney cagney@cygnus.com
! ns32k (--target=ns32k-netbsd broken)
Maintenance only
pa (--target=hppa1.1-hp-proelf broken)
Jeff Law law@cygnus.com
! powerpc (--target=powerpc-eabi,powerpcle-eabi broken)
Kevin Buettner kevinb@cygnus.com
Nick Duffek nsd@cygnus.com
--- 113,125 ----
mn10300 --target=mn10300-elf ,-Werror
Andrew Cagney cagney@cygnus.com
! ns32k (--target=ns32k-pc532 broken)
Maintenance only
pa (--target=hppa1.1-hp-proelf broken)
Jeff Law law@cygnus.com
! powerpc --target=powerpc-eabi,powerpcle-eabi ,-Werror
Kevin Buettner kevinb@cygnus.com
Nick Duffek nsd@cygnus.com
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.66
diff -p -r1.66 Makefile.in
*** Makefile.in 2001/03/01 18:19:28 1.66
--- Makefile.in 2001/03/05 16:30:05
*************** gdbcore_h = gdbcore.h $(bfd_h)
*** 574,579 ****
--- 574,580 ----
frame_h = frame.h
symtab_h = symtab.h bcache.h
+ symfile_h = symfile.h
gdbtypes_h = gdbtypes.h
expression_h = expression.h
value_h = value.h $(symtab_h) $(gdbtypes_h) $(expression_h)
*************** main.o: main.c top.h $(defs_h) gdb_strin
*** 1623,1629 ****
maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
$(expression_h) objfiles.h symfile.h
! mcore-tdep.o: mcore-tdep.c $(defs_h) $(frame_h) $(gdbcmd_h) $(value_h) $(symtab_h)
mcore-rom.o: mcore-rom.c $(defs_h) $(gdbcore_h) target.h monitor.h \
gdb_string.h $(regcache_h)
--- 1624,1631 ----
maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
$(expression_h) objfiles.h symfile.h
! mcore-tdep.o: mcore-tdep.c $(defs_h) $(frame_h) $(gdbcmd_h) $(value_h) \
! $(symtab_h) $(symfile_h) $(gdbcore_h) $(inferior_h)
mcore-rom.o: mcore-rom.c $(defs_h) $(gdbcore_h) target.h monitor.h \
gdb_string.h $(regcache_h)
Index: dsrec.c
===================================================================
RCS file: /cvs/src/src/gdb/dsrec.c,v
retrieving revision 1.6
diff -p -r1.6 dsrec.c
*** dsrec.c 2001/02/08 06:03:52 1.6
--- dsrec.c 2001/03/05 16:30:22
*************** make_srec (char *srec, CORE_ADDR targ_ad
*** 251,258 ****
addr_size = 4;
else
internal_error (__FILE__, __LINE__,
! "make_srec: Bad address (0x%x), or bad flags (0x%x).",
! targ_addr, flags);
/* Now that we know the address size, we can figure out how much
data this record can hold. */
--- 251,258 ----
addr_size = 4;
else
internal_error (__FILE__, __LINE__,
! "make_srec: Bad address (0x%s), or bad flags (0x%x).",
! paddr (targ_addr), flags);
/* Now that we know the address size, we can figure out how much
data this record can hold. */
Index: mcore-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mcore-tdep.c,v
retrieving revision 1.6
diff -p -r1.6 mcore-tdep.c
*** mcore-tdep.c 2001/03/01 01:39:21 1.6
--- mcore-tdep.c 2001/03/05 16:30:22
***************
*** 23,28 ****
--- 23,31 ----
#include "value.h"
#include "gdbcmd.h"
#include "regcache.h"
+ #include "symfile.h"
+ #include "gdbcore.h"
+ #include "inferior.h"
/* Functions declared and used only in this file */
Index: ocd.c
===================================================================
RCS file: /cvs/src/src/gdb/ocd.c,v
retrieving revision 1.13
diff -p -r1.13 ocd.c
*** ocd.c 2001/03/01 01:39:21 1.13
--- ocd.c 2001/03/05 16:30:23
*************** ocd_read_bytes (CORE_ADDR memaddr, char
*** 760,766 ****
/* ARGSUSED */
int
ocd_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int should_write,
! struct target_ops *target)
{
int res;
--- 760,766 ----
/* ARGSUSED */
int
ocd_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int should_write,
! struct mem_attrib *attrib, struct target_ops *target)
{
int res;
Index: ocd.h
===================================================================
RCS file: /cvs/src/src/gdb/ocd.h,v
retrieving revision 1.2
diff -p -r1.2 ocd.h
*** ocd.h 2000/05/28 01:12:28 1.2
--- ocd.h 2001/03/05 16:30:23
*************** void ocd_files_info (struct target_ops *
*** 103,109 ****
int ocd_xfer_memory (CORE_ADDR memaddr, char *myaddr,
! int len, int should_write, struct target_ops *target);
void ocd_mourn (void);
--- 103,111 ----
int ocd_xfer_memory (CORE_ADDR memaddr, char *myaddr,
! int len, int should_write,
! struct mem_attrib *attrib,
! struct target_ops *target);
void ocd_mourn (void);
Index: ser-ocd.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-ocd.c,v
retrieving revision 1.4
diff -p -r1.4 ser-ocd.c
*** ser-ocd.c 2000/07/30 01:48:27 1.4
--- ser-ocd.c 2001/03/05 16:30:49
*************** ocd_setbaudrate (serial_t scb, int rate)
*** 134,139 ****
--- 134,145 ----
}
static int
+ ocd_setstopbits (serial_t scb, int rate)
+ {
+ return 0;
+ }
+
+ static int
ocd_write (serial_t scb, const char *str, int len)
{
#ifdef _WIN32
*************** static struct serial_ops ocd_ops =
*** 168,173 ****
--- 174,180 ----
ocd_print_tty_state,
ocd_noflush_set_tty_state,
ocd_setbaudrate,
+ ocd_setstopbits,
ocd_noop, /* wait for output to drain */
};