This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Stabsreader and const/volatile
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 14 Jan 2002 10:06:11 -0500
- Subject: Re: [RFA] Stabsreader and const/volatile
- References: <20020111201357.A25206@nevyn.them.org>
Daniel Jacobowitz writes:
> 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!
>
Yes, please.
Thanks
Elena
> --
> 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 '@':