gdbtypes.h #defined field accessors

Jan Kratochvil jan.kratochvil@redhat.com
Tue Jun 29 23:15:00 GMT 2010


On Mon, 28 Jun 2010 22:37:47 +0200, Tom Tromey wrote:
> Though FWIW, little of the GDB work I've done seems amenable to automation,
> even the grungy add-an-argument-to-val_print stuff :-(

I have to agree...


> I tend to stick with the style of a given module.
> 
> In new code I don't generally write accessors.

OK.


On Mon, 28 Jun 2010 22:57:01 +0200, Joel Brobecker wrote:
> > In new code I don't generally write accessors.
> 
> I don't know if this is relevant to this particular discussion, but
> I tend to like opaque structures and accessors (setter/getter) functions,
> and I try to use that when writing new code.

While it is not relevant to your "new code" note this is what I miss on the
GDB accessors - they would be (more) useful separated into getters/setters.
It would easily enable providing various currently constant fields as dynamic
DWARF blocks.


Thanks,
Jan



More information about the Gdb mailing list