Re: Variable objects: references formatting

Jim Blandy
2006-05-03T18:08:27Z

On 5/3/06, Jim Blandy <jimb@red-bean.com> wrote:
> On 5/3/06, Vladimir Prus <ghost@cs.msu.su> wrote:
> > At the moment, when using variable objects to display a struct or a class,
> > the result of -data-evaluate-expression is "...". However, when displaying
> > a reference to a class, the result of -data-evaluate-expression is
> > {}-enclosed list of members and their values.
> >
> > This disparity does not seem to be reasonable, the attached patch fixes it:
>
> I think you're right, and the patch looks good. I'll apply it.

Some further stuff I came across, for future reference:

- ChangeLog entries need to have two spaces between the date and the
name, and the name and the email address. They need an asterisk
before the filename. Check out the other ChangeLog entries for
examples.

- When declaring a pointer to a type, GNU coding style writes 'type
*ptr', not 'type* ptr'.

- In GDB, when traversing types, remember to call check_typedef to
avoid having your traversal stopped by typedef nodes.