This is the mail archive of the gdb-patches@sourceware.cygnus.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]

Stabs reading on Alpha (Linux)


The following patch whacks about 20 testsuite files on Alpha; if you like
it, I'll check in.  Although the 0xffffffff might confuse a 32-bit machine,
I believe that the code could never get here on a 32-bit host (it goes
through the n2bits,n3bits path instead).

								Stan

1999-06-22  Stan Shebs  <shebs@andros.cygnus.com>

	* stabsread.c (read_range_type): On Alpha, 0xffffffff is no longer
 	"huge"; add a special case to create unsigned 32-bit int.


--- stabsread.c 1999/05/25 02:06:11     2.158
+++ stabsread.c 1999/06/23 01:38:09
@@ -4677,6 +4677,8 @@
        return init_type (TYPE_CODE_INT, 1, TYPE_FLAG_UNSIGNED, NULL, objfile);
       if (n3 == 0xffff)
        return init_type (TYPE_CODE_INT, 2, TYPE_FLAG_UNSIGNED, NULL, objfile);
+      if (n3 == 0xffffffff)
+       return init_type (TYPE_CODE_INT, 4, TYPE_FLAG_UNSIGNED, NULL, objfile);
 
       /* -1 is used for the upper bound of (4 byte) "unsigned int" and
         "unsigned long", and we already checked for that,

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