From 6ac373717c28cc2befebd1e926dc5fcf39dda39f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 28 Jan 2021 10:09:02 -0500 Subject: 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) : Rename to... : ... this, update all users. : Rename to... : ... this, update all users. Change-Id: Ie7c28684c7b565adec05a7619c418c69429bd8c0 --- gdb/ada-lang.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 8d91240..d0baf5a 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -13269,8 +13269,8 @@ ada_operator_check (struct expression *exp, int pos, /* Invoke callbacks for TYPE and OBJFILE if they were set as non-NULL. */ - if (type != nullptr && type->objfile () != nullptr - && objfile_func (type->objfile (), data)) + if (type != nullptr && type->objfile_owner () != nullptr + && objfile_func (type->objfile_owner (), data)) return 1; return 0; -- cgit v1.1