This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/SPARC] Remove redundant BIAS definitions


Committed to the branch.

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* sparc64-tdep.c (BIAS): Remove define.
	* sparc64-sol2-tdep.c (BIAS): Remove define.
	* sparc64fbsd-tdep.c: Likewise.

Index: sparc64-sol2-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/Attic/sparc64-sol2-tdep.c,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 sparc64-sol2-tdep.c
--- sparc64-sol2-tdep.c 31 Dec 2003 17:32:25 -0000 1.1.2.2
+++ sparc64-sol2-tdep.c 1 Jan 2004 20:50:53 -0000
@@ -32,12 +32,6 @@
 
 #include "sparc64-tdep.h"
 
-/* The stack pointer is offset from the stack frame by a BIAS of 2047
-   (0x7ff) for 64-bit code.  BIAS is likely to be defined on SPARC
-   hosts, so undefine it first.  */
-#undef BIAS
-#define BIAS 2047
-
 /* From <sys/regset.h>.  */
 const struct sparc_gregset sparc64_sol2_gregset =
 {
Index: sparc64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64-tdep.c,v
retrieving revision 1.3.4.5
diff -u -p -r1.3.4.5 sparc64-tdep.c
--- sparc64-tdep.c 26 Dec 2003 21:12:07 -0000 1.3.4.5
+++ sparc64-tdep.c 1 Jan 2004 20:50:53 -0000
@@ -49,12 +49,6 @@
    sparc64_-prefix for 64-bit specific code and the sparc_-prefix for
    code can handle both.  */
 
-/* The stack pointer is offset from the stack frame by a BIAS of 2047
-   (0x7ff) for 64-bit code.  BIAS is likely to be defined on SPARC
-   hosts, so undefine it first.  */
-#undef BIAS
-#define BIAS 2047
-
 /* Macros to extract fields from SPARC instructions.  */
 #define X_OP(i) (((i) >> 30) & 0x3)
 #define X_RD(i) (((i) >> 25) & 0x1f)
Index: sparc64-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/sparc64-tdep.h,v
retrieving revision 1.2.6.4
diff -u -p -r1.2.6.4 sparc64-tdep.h
--- sparc64-tdep.h 26 Dec 2003 23:42:59 -0000 1.2.6.4
+++ sparc64-tdep.h 1 Jan 2004 20:50:53 -0000
@@ -1,6 +1,6 @@
 /* Target-dependent code for UltraSPARC.
 
-   Copyright 2003 Free Software Foundation, Inc.
+   Copyright 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -23,6 +23,12 @@
 #define SPARC64_TDEP_H 1
 
 #include "sparc-tdep.h"
+
+/* The stack pointer is offset from the stack frame by a BIAS of 2047
+   (0x7ff) for 64-bit code.  BIAS is likely to be defined on SPARC
+   hosts, so undefine it first.  */
+#undef BIAS
+#define BIAS 2047
 
 /* Register offsets for the general-purpose register set.  */
 
Index: sparc64fbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64fbsd-tdep.c,v
retrieving revision 1.2.6.4
diff -u -p -r1.2.6.4 sparc64fbsd-tdep.c
--- sparc64fbsd-tdep.c 29 Dec 2003 17:26:51 -0000 1.2.6.4
+++ sparc64fbsd-tdep.c 1 Jan 2004 20:50:53 -0000
@@ -33,12 +33,6 @@
 
 #include "sparc64-tdep.h"
 
-/* The stack pointer is offset from the stack frame by a BIAS of 2047
-   (0x7ff) for 64-bit code.  BIAS is likely to be defined on SPARC
-   hosts, so undefine it first.  */
-#undef BIAS
-#define BIAS 2047
-
 /* From <machine/reg.h>.  */
 const struct sparc_gregset sparc64fbsd_gregset =
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]