Patches to add Irix6 host support.
authorJim Wilson <wilson@tuliptree.org>
Tue, 12 Nov 1996 23:33:32 +0000 (23:33 +0000)
committerJim Wilson <wilson@tuliptree.org>
Tue, 12 Nov 1996 23:33:32 +0000 (23:33 +0000)
14 files changed:
gdb/ChangeLog
gdb/alpha-tdep.c
gdb/c-exp.y
gdb/ch-exp.c
gdb/config/mips/tm-mips.h
gdb/configure.host
gdb/convex-xdep.c
gdb/corefile.c
gdb/f-exp.y
gdb/m2-exp.y
gdb/m88k-tdep.c
gdb/remote-hms.c
gdb/remote-mips.c
gdb/values.c

index c266de3643789803ab55d79cd42d2083bebdeafa..18e45a39bbd916d744b3b02aed00561b1a70d429 100644 (file)
@@ -1,3 +1,16 @@
+Tue Nov 12 12:18:29 1996  Jim Wilson  <wilson@cygnus.com>
+
+       * defs.h (ULONGEST): New macro.
+       * alpha-tdep.c, breakpoint.c, c-exp.y, ch-exp.c, convex-xdep.c,
+       corefile.c, defs.h, f-exp.y, findvar.c, gdbcore.h, m2-exp.y,
+       m88k-tdep.c, printcmd.c, remote-hms.c, remote-mips.c, sparc-tdep.c,
+       valarith.c, valops.c, values.c, config/gould/tm-np1.h,
+       config/mips/tm-mips.h, mswin/prebuilt/gdb/cexptab.c,
+       mswin/prebuilt/gdb/fexptab.c, mswin/prebuilt/gdb/m2exptab.c:
+       Change all occurances of unsigned LONGEST to ULONGEST.
+
+       * configure.host (mips-sgi-irix6): Add.
+       
 Tue Nov 12 12:16:40 1996  Michael Snyder  <msnyder@cleaver.cygnus.com>
 
        * sh-tdep.c: Add functionality for target function calls.
index e07d75a9717ee2319ad44fc776ce8e37cb756456..b19d85feb1902963647fc3d558c393e6d88e8e51 100644 (file)
@@ -1253,7 +1253,7 @@ alpha_register_convert_to_virtual (regnum, valtype, raw_buffer, virtual_buffer)
     }
   else if (TYPE_CODE (valtype) == TYPE_CODE_INT && TYPE_LENGTH (valtype) <= 4)
     {
-      unsigned LONGEST l;
+      ULONGEST l;
       l = extract_unsigned_integer (raw_buffer, REGISTER_RAW_SIZE (regnum));
       l = ((l >> 32) & 0xc0000000) | ((l >> 29) & 0x3fffffff);
       store_unsigned_integer (virtual_buffer, TYPE_LENGTH (valtype), l);
@@ -1282,7 +1282,7 @@ alpha_register_convert_to_raw (valtype, regnum, virtual_buffer, raw_buffer)
     }
   else if (TYPE_CODE (valtype) == TYPE_CODE_INT && TYPE_LENGTH (valtype) <= 4)
     {
-      unsigned LONGEST l;
+      ULONGEST l;
       if (TYPE_UNSIGNED (valtype))
        l = extract_unsigned_integer (virtual_buffer, TYPE_LENGTH (valtype));
       else
index 03691ef709459ef692843bc67b4bfdca17fccb64..0572e1251d4cd6f294e5f80174e05047375224dc 100644 (file)
@@ -915,7 +915,7 @@ parse_number (p, len, parsed_float, putithere)
      here, and we do kind of silly things like cast to unsigned.  */
   register LONGEST n = 0;
   register LONGEST prevn = 0;
-  unsigned LONGEST un;
+  ULONGEST un;
 
   register int i = 0;
   register int c;
@@ -928,7 +928,7 @@ parse_number (p, len, parsed_float, putithere)
   /* We have found a "L" or "U" suffix.  */
   int found_suffix = 0;
 
-  unsigned LONGEST high_bit;
+  ULONGEST high_bit;
   struct type *signed_type;
   struct type *unsigned_type;
 
@@ -1051,7 +1051,7 @@ parse_number (p, len, parsed_float, putithere)
         on 0x123456789 when LONGEST is 32 bits.  */
       if (c != 'l' && c != 'u' && n != 0)
        {       
-         if ((unsigned_p && (unsigned LONGEST) prevn >= (unsigned LONGEST) n))
+         if ((unsigned_p && (ULONGEST) prevn >= (ULONGEST) n))
            error ("Numeric constant too large.");
        }
       prevn = n;
@@ -1069,11 +1069,11 @@ parse_number (p, len, parsed_float, putithere)
      the case where it is we just always shift the value more than
      once, with fewer bits each time.  */
 
-  un = (unsigned LONGEST)n >> 2;
+  un = (ULONGEST)n >> 2;
   if (long_p == 0
       && (un >> (TARGET_INT_BIT - 2)) == 0)
     {
-      high_bit = ((unsigned LONGEST)1) << (TARGET_INT_BIT-1);
+      high_bit = ((ULONGEST)1) << (TARGET_INT_BIT-1);
 
       /* A large decimal (not hex or octal) constant (between INT_MAX
         and UINT_MAX) is a long or unsigned long, according to ANSI,
@@ -1087,20 +1087,20 @@ parse_number (p, len, parsed_float, putithere)
   else if (long_p <= 1
           && (un >> (TARGET_LONG_BIT - 2)) == 0)
     {
-      high_bit = ((unsigned LONGEST)1) << (TARGET_LONG_BIT-1);
+      high_bit = ((ULONGEST)1) << (TARGET_LONG_BIT-1);
       unsigned_type = builtin_type_unsigned_long;
       signed_type = builtin_type_long;
     }
   else
     {
-      high_bit = (((unsigned LONGEST)1)
+      high_bit = (((ULONGEST)1)
                  << (TARGET_LONG_LONG_BIT - 32 - 1)
                  << 16
                  << 16);
       if (high_bit == 0)
        /* A long long does not fit in a LONGEST.  */
        high_bit =
-         (unsigned LONGEST)1 << (sizeof (LONGEST) * HOST_CHAR_BIT - 1);
+         (ULONGEST)1 << (sizeof (LONGEST) * HOST_CHAR_BIT - 1);
       unsigned_type = builtin_type_unsigned_long_long;
       signed_type = builtin_type_long_long;
     }
index c33429bbdc4a14074a02d5d73f5bedea8b75a6a7..cc7d7f75148eaacc521d957412269b29921db97d 100644 (file)
@@ -63,7 +63,7 @@ typedef union
 
   {
     LONGEST lval;
-    unsigned LONGEST ulval;
+    ULONGEST ulval;
     struct {
       LONGEST val;
       struct type *type;
index d903e203ed15ea443377ddac16329bead6a13361..7ba58db873f55b25847c5630991886da51f919d2 100644 (file)
@@ -411,13 +411,13 @@ extern void mips_pop_frame PARAMS ((void));
       if (mips_fpu == MIPS_FPU_NONE)                                   \
        {                                                               \
          store_unsigned_integer (dummyname + 3 * 4, 4,                 \
-                                 (unsigned LONGEST) 0);                \
+                                 (ULONGEST) 0);                        \
          store_unsigned_integer (dummyname + 4 * 4, 4,                 \
-                                 (unsigned LONGEST) 0);                \
+                                 (ULONGEST) 0);                        \
          store_unsigned_integer (dummyname + 5 * 4, 4,                 \
-                                 (unsigned LONGEST) 0);                \
+                                 (ULONGEST) 0);                        \
          store_unsigned_integer (dummyname + 6 * 4, 4,                 \
-                                 (unsigned LONGEST) 0);                \
+                                 (ULONGEST) 0);                        \
        }                                                               \
       else if (mips_fpu == MIPS_FPU_SINGLE)                            \
        {                                                               \
index db8e3b21dae0cbe85343ce59f4ea424eced01fe3..7b7266a5ee5eb79c968ba5e6a384f77dbb8dc133 100644 (file)
@@ -108,6 +108,8 @@ mips-little-*)              gdb_host=littlemips ;;
 mips-sgi-irix3*)       gdb_host=irix3 ;;
 mips-sgi-irix4*)       gdb_host=irix4 ;;
 mips-sgi-irix5*)       gdb_host=irix5 ;;
+# Close enough for now.
+mips-sgi-irix6*)       gdb_host=irix5 ;;
 mips-sony-*)           gdb_host=news-mips ;;
 mips-*-mach3*)         gdb_host=mach3 ;;
 mips-*-sysv4*)         gdb_host=mipsv4 ;;
index 9a3d99552ede7f23d9cfdb0f0ec23ae07768ccb0..8bfc0d8166e2278918581115916ec1789faf8b65 100644 (file)
@@ -193,7 +193,7 @@ static struct type *vector_type ();
 static long *read_vector_register ();
 static long *read_vector_register_1 ();
 static void write_vector_register ();
-static unsigned LONGEST read_comm_register ();
+static ULONGEST read_comm_register ();
 static void write_comm_register ();
 static void convex_cont_command ();
 static void thread_continue ();
@@ -442,7 +442,7 @@ read_vector_register_1 (reg)
 static void
 write_vector_register (reg, element, val)
     int reg, element;
-    unsigned LONGEST val;
+    ULONGEST val;
 {
   if (have_inferior_p ())
     {
@@ -481,7 +481,7 @@ write_vector_register (reg, element, val)
 
 /* Return the contents of communication register NUM.  */ 
 
-static unsigned LONGEST 
+static ULONGEST 
 read_comm_register (num)
      int num;
 {
@@ -503,7 +503,7 @@ read_comm_register (num)
 static void
 write_comm_register (num, val)
      int num;
-     unsigned LONGEST val;
+     ULONGEST val;
 {
   if (have_inferior_p ())
     {
index b792514fa3bca7d75f3252c8f215d97b7e6d0786..65814208dac0ea1457a66b1dd48448dc1e3431cd 100644 (file)
@@ -283,12 +283,12 @@ read_memory_integer (memaddr, len)
   return extract_signed_integer (buf, len);
 }
 
-unsigned LONGEST
+ULONGEST
 read_memory_unsigned_integer (memaddr, len)
      CORE_ADDR memaddr;
      int len;
 {
-  char buf[sizeof (unsigned LONGEST)];
+  char buf[sizeof (ULONGEST)];
 
   read_memory (memaddr, buf, len);
   return extract_unsigned_integer (buf, len);
index caf0ca6548e17fa42fb3c87b1adbdeeb11dd9b8e..4a1f747605c902b56a86d013a97052508dbae5a8 100644 (file)
@@ -643,7 +643,7 @@ parse_number (p, len, parsed_float, putithere)
   register int base = input_radix;
   int unsigned_p = 0;
   int long_p = 0;
-  unsigned LONGEST high_bit;
+  ULONGEST high_bit;
   struct type *signed_type;
   struct type *unsigned_type;
 
@@ -745,13 +745,13 @@ parse_number (p, len, parsed_float, putithere)
        && ((n >> 2) >> (TARGET_INT_BIT-2)))   /* Avoid shift warning */
       || long_p)
     {
-      high_bit = ((unsigned LONGEST)1) << (TARGET_LONG_BIT-1);
+      high_bit = ((ULONGEST)1) << (TARGET_LONG_BIT-1);
       unsigned_type = builtin_type_unsigned_long;
       signed_type = builtin_type_long;
     }
   else 
     {
-      high_bit = ((unsigned LONGEST)1) << (TARGET_INT_BIT-1);
+      high_bit = ((ULONGEST)1) << (TARGET_INT_BIT-1);
       unsigned_type = builtin_type_unsigned_int;
       signed_type = builtin_type_int;
     }    
index 08a11ce2c3c81eead4336b72c09948fa72b19c5e..507e5bc62fd2373a83bf9c7f330a420cc799e3f4 100644 (file)
@@ -135,7 +135,7 @@ static struct block *modblock=0;
 %union
   {
     LONGEST lval;
-    unsigned LONGEST ulval;
+    ULONGEST ulval;
     DOUBLEST dval;
     struct symbol *sym;
     struct type *tval;
index a21bd96256e09dd74f42471716ec7dd185617176..f74560e1d834fbe7e29d2c40c4aa2524b0f265c4 100644 (file)
@@ -514,7 +514,7 @@ frame_saved_pc (frame)
 static void
 write_word (sp, word)
      CORE_ADDR sp;
-     unsigned LONGEST word;
+     ULONGEST word;
 {
   register int len = REGISTER_SIZE;
   char buffer[MAX_REGISTER_RAW_SIZE];
index 2f43e20229909461987ecc1077d7e7509e0dce90..6051c4ff3a3b496fd265c8ea2d3e6b6d52329af1 100644 (file)
@@ -924,7 +924,7 @@ hms_fetch_register (dummy)
   int s;
   int gottok;
 
-  unsigned LONGEST reg[NUM_REGS];
+  ULONGEST reg[NUM_REGS];
 
   check_open ();
 
index c0c16864e463759bc5c4eea67d0f906baa03f938..4956e226d2870fd4a68129c3015c15b81676a971 100644 (file)
@@ -1732,7 +1732,7 @@ static void
 mips_fetch_registers (regno)
      int regno;
 {
-  unsigned LONGEST val;
+  ULONGEST val;
   int err;
 
   if (regno == -1)
index 0c3a6b9768926e74e901e75464580cdb7c4ee8f1..3f9e7bbb808eb30c736b4e8360f3bd7aa35e3886 100644 (file)
@@ -676,10 +676,10 @@ unpack_double (type, valaddr, invp)
     {
       /* Unsigned -- be sure we compensate for signed LONGEST.  */
 #ifndef _MSC_VER
-      return (unsigned LONGEST) unpack_long (type, valaddr);
+      return (ULONGEST) unpack_long (type, valaddr);
 #else
 #if (_MSC_VER > 800)
-      return (unsigned LONGEST) unpack_long (type, valaddr);
+      return (ULONGEST) unpack_long (type, valaddr);
 #else
       /* FIXME!!! msvc22 doesn't support unsigned __int64 -> double */
       return (LONGEST) unpack_long (type, valaddr);
@@ -1147,8 +1147,8 @@ unpack_field_as_long (type, valaddr, fieldno)
      char *valaddr;
      int fieldno;
 {
-  unsigned LONGEST val;
-  unsigned LONGEST valmask;
+  ULONGEST val;
+  ULONGEST valmask;
   int bitpos = TYPE_FIELD_BITPOS (type, fieldno);
   int bitsize = TYPE_FIELD_BITSIZE (type, fieldno);
   int lsbcount;
@@ -1168,7 +1168,7 @@ unpack_field_as_long (type, valaddr, fieldno)
 
   if ((bitsize > 0) && (bitsize < 8 * (int) sizeof (val)))
     {
-      valmask = (((unsigned LONGEST) 1) << bitsize) - 1;
+      valmask = (((ULONGEST) 1) << bitsize) - 1;
       val &= valmask;
       if (!TYPE_UNSIGNED (TYPE_FIELD_TYPE (type, fieldno)))
        {
@@ -1220,9 +1220,9 @@ modify_field (addr, fieldval, bitpos, bitsize)
 
   /* Mask out old value, while avoiding shifts >= size of oword */
   if (bitsize < 8 * (int) sizeof (oword))
-    oword &= ~(((((unsigned LONGEST)1) << bitsize) - 1) << bitpos);
+    oword &= ~(((((ULONGEST)1) << bitsize) - 1) << bitpos);
   else
-    oword &= ~((~(unsigned LONGEST)0) << bitpos);
+    oword &= ~((~(ULONGEST)0) << bitpos);
   oword |= fieldval << bitpos;
 
   store_signed_integer (addr, sizeof oword, oword);
This page took 0.035871 seconds and 4 git commands to generate.