[PATCH 1/2] gdb: rename type::{arch, objfile} -> type::{arch_owner, objfile_owner}

Tom Tromey tom@tromey.com
Wed Jan 27 19:29:34 GMT 2021


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> I think this makes the names of the methods clearer, especially for the
Simon> arch.  The type::arch method (which gets the arch owner, or NULL if the
Simon> type is not arch owned) is easily confused with the get_type_arch method
Simon> (which returns an arch no matter what).  The name "arch_owner" will make
Simon> it intuitive that the method returns NULL if the type is not arch-owned.

Thanks.  This seems like a good idea to me.

Tom


More information about the Gdb-patches mailing list