This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix / update build problems
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 12 Nov 2004 14:22:46 -0500
- Subject: [commit] Fix / update build problems
Hello,
This fixes some relatively obvious build problems:
- undefined/unused functions and variables in cris (picky -Werror)
- d10v is OBSOLETE
- rdi was defining already defined macros
committed,
Andrew
2004-11-12 Andrew Cagney <cagney@gnu.org>
* cris-tdep.c (cris_register_offset): Delete, never called.
(cris_spec_reg_applicable): Delete cris_ver_sim.
* MAINTAINERS: List d10v as OBSOLETE.
* rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
FOPEN_WB et.al., defined by "fopen-bin.h".
Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.292
diff -p -u -r1.292 MAINTAINERS
--- MAINTAINERS 1 Nov 2004 21:01:25 -0000 1.292
+++ MAINTAINERS 12 Nov 2004 19:20:17 -0000
@@ -72,8 +72,7 @@ maintainer works with the native maintai
cris --target=cris-elf ,-Werror
Orjan Friberg orjanf@axis.com
- d10v --target=d10v-elf ,-Werror
- Maintenance only
+ d10v OBSOLETE
d30v Deleted.
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.118
diff -p -u -r1.118 cris-tdep.c
--- cris-tdep.c 14 Oct 2004 12:10:29 -0000 1.118
+++ cris-tdep.c 12 Nov 2004 19:20:19 -0000
@@ -1278,9 +1278,6 @@ cris_spec_reg_applicable (struct cris_sp
case cris_ver_warning:
/* Indeterminate/obsolete. */
return 0;
- case cris_ver_sim:
- /* Simulator only. */
- return 0;
case cris_ver_v0_3:
return (version >= 0 && version <= 3);
case cris_ver_v3p:
@@ -1376,33 +1373,6 @@ cris_cannot_store_register (int regno)
return 0;
}
-/* Returns the register offset for the first byte of register regno's space
- in the saved register state. Returns -1 for an invalid or unimplemented
- register. */
-
-static int
-cris_register_offset (int regno)
-{
- int i;
- int reg_size;
- int offset = 0;
-
- if (regno >= 0 && regno < NUM_REGS)
- {
- /* FIXME: The offsets should be cached and calculated only once,
- when the architecture being debugged has changed. */
- for (i = 0; i < regno; i++)
- offset += cris_register_size (i);
-
- return offset;
- }
- else
- {
- /* Invalid register. */
- return -1;
- }
-}
-
/* Return the GDB type (defined in gdbtypes.c) for the "standard" data type
of data in register regno. */
Index: rdi-share/host.h
===================================================================
RCS file: /cvs/src/src/gdb/rdi-share/host.h,v
retrieving revision 1.8
diff -p -u -r1.8 host.h
--- rdi-share/host.h 15 Jun 2003 12:30:56 -0000 1.8
+++ rdi-share/host.h 12 Nov 2004 19:20:19 -0000
@@ -158,6 +158,7 @@ typedef char *ArgvType;
#define ROR_32(val, n) \
((((unsigned32)(val) >> (n)) | ((unsigned32)(val) << (32-(n)))) & 0xFFFFFFFFL)
+#if 0
#ifdef COMPILING_ON_UNIX
# define FOPEN_WB "w"
# define FOPEN_RB "r"
@@ -170,6 +171,7 @@ typedef char *ArgvType;
# define FOPEN_RB "rb"
# define FOPEN_RWB "rb+"
#endif
+#endif
#ifndef FILENAME_MAX
# define FILENAME_MAX 256