This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: [RFA] Stabsreader and const/volatile


On Mon, Jan 14, 2002 at 10:06:11AM -0500, Elena Zannoni wrote:
> 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.

Committed, thanks.

> 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 '@':
> 

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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