This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Warning: something weird with void* types.
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: Warning: something weird with void* types.
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Thu, 10 May 2001 13:00:55 -0400
- Cc: gdb at sources dot redhat dot com, Andrew Cagney <cagney at cygnus dot com>, Chris Faylor <cgf at cygnus dot com>
- References: <3AF6D9F3.ADD7A779@redhat.com><3AFAC56E.9AF1DD27@redhat.com>
Fernando Nasser writes:
> I can't believe nobody has anything to say about this...
Can you file a PR? So we don't forget about this.
Elena
>
>
> Fernando Nasser wrote:
> >
> > FYI, we are having to make a change in Insight to cope with a funny
> > thing that recently appeared in GDB.
> >
> > The target type of a void* does not have the type name set to "void" any
> > longer.
> >
> > (gdb) p *type
> > $3 = {code = TYPE_CODE_PTR, name = 0x0, tag_name = 0x0, length = 4,
> > upper_bound_type = 0, lower_bound_type = 0, objfile = 0x854e998,
> > target_type = 0x8bcd5d8, pointer_type = 0x0, reference_type = 0x0,
> > cv_type = 0x8bcd61c, flags = 1, nfields = 0, fields = 0x0,
> > vptr_basetype = 0x0, vptr_fieldno = -1, type_specific = {arg_types =
> > 0x0,
> > cplus_stuff = 0x0}}
> > (gdb) p *target
> > $4 = {code = TYPE_CODE_VOID, name = 0x0, tag_name = 0x0, length = 1,
> > upper_bound_type = 0, lower_bound_type = 0, objfile = 0x854e998,
> > target_type = 0x0, pointer_type = 0x8bcd61c, reference_type = 0x0,
> > cv_type = 0x8bcd5d8, flags = 0, nfields = 0, fields = 0x0,
> > vptr_basetype = 0x0, vptr_fieldno = -1, type_specific = {arg_types =
> > 0x0,
> > cplus_stuff = 0x0}}
> >
> > As you see, TYPE_CODE_VOID does not have a name anymore, at least when
> > it is the target of a (void *) type..
> >
>
>
> --
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9
>