[RFA] Stabsreader and const/volatile
Daniel Jacobowitz
drow@mvista.com
Fri Jan 11 17:13:00 GMT 2002
We never actually defined the new types we built. Is this patch OK? With
it, all but two of the const/volatile tests XPASS for stabs with Jason's GCC
patch!
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
2001-01-11 Daniel Jacobowitz <drow@mvista.com>
* stabsread.c (read_type): Pass dbx_lookup_type (typenums)
to make_cv_type.
Index: stabsread.c
===================================================================
RCS file: /cvs/src/src/gdb/stabsread.c,v
retrieving revision 1.21
diff -u -r1.21 stabsread.c
--- stabsread.c 2002/01/05 04:30:19 1.21
+++ stabsread.c 2002/01/12 01:06:17
@@ -2586,7 +2586,8 @@
if (type_descriptor == 'c' && !os9k_stabs)
return error_type (pp, objfile);
type = read_type (pp, objfile);
- type = make_cv_type (1, TYPE_VOLATILE (type), type, 0);
+ type = make_cv_type (1, TYPE_VOLATILE (type), type,
+ dbx_lookup_type (typenums));
break;
case 'B': /* Volatile qual on some type (Sun) */
@@ -2596,7 +2597,8 @@
if (type_descriptor == 'i' && !os9k_stabs)
return error_type (pp, objfile);
type = read_type (pp, objfile);
- type = make_cv_type (TYPE_CONST (type), 1, type, 0);
+ type = make_cv_type (TYPE_CONST (type), 1, type,
+ dbx_lookup_type (typenums));
break;
case '@':
More information about the Gdb-patches
mailing list