This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] convert blocks to dictionaries, phase 1, main part
Andrew Cagney <ac131313@ges.redhat.com> writes:
> The ALL_xxx_yyy() iterator can probably stay. Its an ``accepted''
> convention.
I think the real reason these are acceptable is not because they're
"established", or anything like that. It's because doing them without
macros is a pain in the neck, no matter how you go about it.
Functions that apply functions to each entry in the table (á là
Scheme's for-each) are very clumsy in C. Iterator objects need to be
freed.
I think the accessors like TYPE_NAME and SYMBOL_VALUE_ADDRESS are
generally okay. Compiling with -g3 makes a big difference.