A ton of changes to improve C++ debugging. See ChangeLog.
[deliverable/binutils-gdb.git] / gdb / tm-sparc.h
index a1ca17e74c5a0b6315e8ec070dac602a28ff2940..a8158d07a33dd9e3e1c19f7c161187807b76cd8f 100644 (file)
@@ -1,4 +1,5 @@
-/* Parameters for SPARC target machines, for GDB, the GNU debugger.
+/* Target machine sub-parameters for SPARC, for GDB, the GNU debugger.
+   This is included by other tm-*.h files to define SPARC cpu-related info.
    Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
    Contributed by Michael Tiemann (tiemann@mcc.com)
 
@@ -23,11 +24,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Floating point is IEEE compatible.  */
 #define IEEE_FLOAT
 
-/* Define this if the C compiler puts an underscore at the front
-   of external names before giving them to the linker.  */
-
-#define NAMES_HAVE_UNDERSCORE
-
 /* When passing a structure to a function, Sun cc passes the address
    in a register, not the structure itself.  It (under SunOS4) creates
    two symbols, so we get a LOC_ARG saying the address is on the stack
@@ -137,7 +133,7 @@ extern CORE_ADDR sparc_pc_adjust();
   "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23",      \
   "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31",      \
                                                                 \
-  "y", "psr", "wim", "tbr", "pc", "npc", "fpsr", "cpsr" };
+  "y", "psr", "wim", "tbr", "pc", "npc", "fpsr", "cpsr" }
 
 /* Register numbers of various important registers.
    Note that some of these values are "real" register numbers,
@@ -222,13 +218,13 @@ extern CORE_ADDR sparc_pc_adjust();
    to virtual format for register REGNUM.  */
 
 #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \
-{ bcopy ((FROM), (TO), 4); }
+{ memcpy ((TO), (FROM), 4); }
 
 /* Convert data from virtual format for register REGNUM
    to raw format for register REGNUM.  */
 
 #define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO)        \
-{ bcopy ((FROM), (TO), 4); }
+{ memcpy ((TO), (FROM), 4); }
 
 /* Return the GDB type object for the "standard" data type
    of data in register N.  */
@@ -256,13 +252,13 @@ extern CORE_ADDR sparc_pc_adjust();
   {                                                                       \
     if (TYPE_CODE (TYPE) == TYPE_CODE_FLT)                                \
       {                                                                           \
-       bcopy (((int *)(REGBUF))+FP0_REGNUM,                               \
-              (VALBUF), TYPE_LENGTH(TYPE));                               \
+       memcpy ((VALBUF), ((int *)(REGBUF))+FP0_REGNUM, TYPE_LENGTH(TYPE));\
       }                                                                           \
     else                                                                  \
-      bcopy ((char *)(REGBUF) + 4 * 8 +                                           \
-                    (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)), \
-            (VALBUF), TYPE_LENGTH(TYPE));                                 \
+      memcpy ((VALBUF),                                                           \
+             (char *)(REGBUF) + 4 * 8 +                                   \
+             (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)),        \
+             TYPE_LENGTH(TYPE));                                          \
   }
 
 /* Write into appropriate registers a function return value
@@ -295,10 +291,6 @@ sparc_extract_struct_value_address PARAMS ((char [REGISTER_BYTES]));
 /* Describe the pointer in each stack frame to the previous stack frame
    (its caller).  */
 
-/* If you're not compiling this on a sun, you'll have to get a copy
-   of <sun4/reg.h> (also known as <machine/reg.h>).  */
-#include <sun4/reg.h>
-
 /* FRAME_CHAIN takes a frame's nominal address
    and produces the frame's chain-pointer. */
 
This page took 0.024401 seconds and 4 git commands to generate.