[RFA 2/6] Change representation of psymbol to flush out accessors

Tom Tromey tom@tromey.com
Tue Jun 5 22:56:00 GMT 2018


>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> I wanted for a while to convert all these macros to static inline
Simon> functions, it just hasn't been high on the todo list.  Since you're
Simon> adding new code, would you mind making them static inline functions
Simon> instead of macros (if you agree with the idea, of course)?

How about just getting rid of them entirely and referring to the members
directly?  IMO the macros don't add any value, and I suppose functions
wouldn't really, either, with the exception of one for computing the
address.  This could be the only method.

Tom



More information about the Gdb-patches mailing list