]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* sparc-tdep.h: Update copyright year.
authorMark Kettenis <kettenis@gnu.org>
Thu, 1 Jan 2004 21:06:17 +0000 (21:06 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 1 Jan 2004 21:06:17 +0000 (21:06 +0000)
(sparc_fetch_instruction): New prototype.
* sparc-tdep.c: Update copyright year.
(sparc_fetch_instruction): Make global.
* sparc64-tdep.c: Update copyright year.
(sparc_fetch_instruction): Remove function.
(X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
(X_DISP19): Really remove macros.
* sparc64-sol2-tdep.c: Update copyright year.
* sparc64fbsd-tdep.c: Likewise.

gdb/ChangeLog
gdb/sparc-tdep.c
gdb/sparc-tdep.h
gdb/sparc64-sol2-tdep.c
gdb/sparc64-tdep.c
gdb/sparc64fbsd-tdep.c

index 6db7252675c5791dc060067c0824a7fb26a0ee37..9fbe52974fd59a131cb51be72ba97be1190d7551 100644 (file)
@@ -1,5 +1,16 @@
 2004-01-01  Mark Kettenis  <kettenis@gnu.org>
 
+       * sparc-tdep.h: Update copyright year.
+       (sparc_fetch_instruction): New prototype.
+       * sparc-tdep.c: Update copyright year.
+       (sparc_fetch_instruction): Make global.
+       * sparc64-tdep.c: Update copyright year.
+       (sparc_fetch_instruction): Remove function.
+       (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
+       (X_DISP19): Really remove macros.
+       * sparc64-sol2-tdep.c: Update copyright year.
+       * sparc64fbsd-tdep.c: Likewise.
+
        * sparc64-tdep.c (BIAS): Remove define.
        * sparc64-sol2-tdep.c (BIAS): Remove define.
        * sparc64fbsd-tdep.c: Likewise.
index 8ba8a50a7f3428da8f1ce82a21fbdcdc183b462d..09fdc86a06ca39026f933ae66c4938503c56c6bf 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for SPARC.
 
-   Copyright 2003 Free Software Foundation, Inc.
+   Copyright 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -87,7 +87,7 @@
 /* Fetch the instruction at PC.  Instructions are always big-endian
    even if the processor operates in little-endian mode.  */
 
-static unsigned long
+unsigned long
 sparc_fetch_instruction (CORE_ADDR pc)
 {
   unsigned char buf[4];
index 1e9f30cb96ff6df0265c6b1cc38244cad02639c0..05f2e369fa389a8f0d97908c0c0805d3326c6a06 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for SPARC.
 
-   Copyright 2003 Free Software Foundation, Inc.
+   Copyright 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -136,6 +136,9 @@ struct sparc_frame_cache
   struct trad_frame_saved_reg *saved_regs;
 };
 
+/* Fetch the instruction at PC.  */
+extern unsigned long sparc_fetch_instruction (CORE_ADDR pc);
+
 extern CORE_ADDR sparc_analyze_prologue (CORE_ADDR pc, CORE_ADDR current_pc,
                                         struct sparc_frame_cache *cache);
 
index e9abad91730114e9358e8da2fdf8792d7cdba668..079f3c502e7a8a025dd334478c9aa074d7556e37 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for Solaris UltraSPARC.
 
-   Copyright 2003 Free Software Foundation, Inc.
+   Copyright 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
index a1f60d49e9cfc39aa1fa950f27ab809cc73afbbd..4ca0bc9fdc85ad12f08b3bf518327e31e0eb29a0 100644 (file)
@@ -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.
 
 /* Please use the sparc32_-prefix for 32-bit specific code, the
    sparc64_-prefix for 64-bit specific code and the sparc_-prefix for
    code can handle both.  */
-
-/* Macros to extract fields from SPARC instructions.  */
-#define X_OP(i) (((i) >> 30) & 0x3)
-#define X_RD(i) (((i) >> 25) & 0x1f)
-#define X_A(i) (((i) >> 29) & 1)
-#define X_COND(i) (((i) >> 25) & 0xf)
-#define X_OP2(i) (((i) >> 22) & 0x7)
-#define X_IMM22(i) ((i) & 0x3fffff)
-#define X_OP3(i) (((i) >> 19) & 0x3f)
-#define X_I(i) (((i) >> 13) & 1)
-/* Sign extension macros.  */
-#define X_DISP22(i) ((X_IMM22 (i) ^ 0x200000) - 0x200000)
-#define X_DISP19(i) ((((i) & 0x7ffff) ^ 0x40000) - 0x40000)
-
-/* Fetch the instruction at PC.  Instructions are always big-endian
-   even if the processor operates in little-endian mode.  */
-
-static unsigned long
-sparc_fetch_instruction (CORE_ADDR pc)
-{
-  unsigned char buf[4];
-  unsigned long insn;
-  int i;
-
-  read_memory (pc, buf, sizeof (buf));
-
-  insn = 0;
-  for (i = 0; i < sizeof (buf); i++)
-    insn = (insn << 8) | buf[i];
-  return insn;
-}
 \f
 /* The functions on this page are intended to be used to classify
    function arguments.  */
index 4ca49a84c2b8100c6cad66c4fb5bf1d7faf3aac2..14ecf9604f22b172e0c1658eecba2cb044f49eb1 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for FreeBSD/sparc64.
 
-   Copyright 2003 Free Software Foundation, Inc.
+   Copyright 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.