This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


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

Re: RFC: [patch] Circunvent GCC/GDB problem with (void*) types


Keith Seitz wrote:
> 
> On Mon, 7 May 2001, Fernando Nasser wrote:
> 
> > The (char *) target types would need that trick as they are of
> > TYPE_CODE_INT type (don't ask me why) but have "char" as the type name.
> > However, I saw no reason for disallowing the dereferencing of (char *)
> > either.  It looks like a useful feature.  If you do not agree, please
> > let me know.
> 
> The reason for not dereferencing char*: we always printed the contents of
> the string, so there was no need to dereference it.
> 
> But you are right, there really is no overwhelming reason not to allow
> this. (It is, afterall, a UI decision, not a backend one.)
> 

The only thing we do have an argument is (void *), which is the fact
that we don't know how to display it.  The GDB command line interface
does the same; it prints something like "attempt to dereference a void
pointer".

I don't have any strong opinion about this.  So, if people prefer to
disallow dereferencing char* just let me know.


-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


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