This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Stabs reading on Alpha (Linux)
- To: jimb@cygnus.com
- Subject: Stabs reading on Alpha (Linux)
- From: Stan Shebs <shebs@cygnus.com>
- Date: Tue, 22 Jun 1999 18:42:19 -0700
- CC: gdb-patches@sourceware.cygnus.com
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,