gdb: rename type::{arch,objfile} -> type::{arch_owner,objfile_owner}
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 28 Jan 2021 15:09:02 +0000 (10:09 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 28 Jan 2021 15:09:02 +0000 (10:09 -0500)
commit6ac373717c28cc2befebd1e926dc5fcf39dda39f
tree56a4b7f247510cc9a5b087722b0fd034f06ee0d0
parentcc3edc52747fd8b184ee48f1b0cc1ac0aca7832e
gdb: rename type::{arch,objfile} -> type::{arch_owner,objfile_owner}

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

Also, this frees the type::arch name, so we will be able to morph the
get_type_arch function into the type::arch method.

gdb/ChangeLog:

* gdbtypes.h (struct type) <arch>: Rename to...
<arch_owner>: ... this, update all users.
<objfile>: Rename to...
<objfile_owner>: ... this, update all users.

Change-Id: Ie7c28684c7b565adec05a7619c418c69429bd8c0
12 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/compile/compile-c-types.c
gdb/compile/compile-cplus-types.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/guile/scm-type.c
gdb/language.c
gdb/parse.c
gdb/python/py-type.c
gdb/rust-lang.c
gdb/value.c