aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-28 10:09:02 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-28 10:09:02 -0500
commit6ac373717c28cc2befebd1e926dc5fcf39dda39f (patch)
tree56a4b7f247510cc9a5b087722b0fd034f06ee0d0 /gdb/guile
parentcc3edc52747fd8b184ee48f1b0cc1ac0aca7832e (diff)
downloadgdb-6ac373717c28cc2befebd1e926dc5fcf39dda39f.zip
gdb-6ac373717c28cc2befebd1e926dc5fcf39dda39f.tar.gz
gdb-6ac373717c28cc2befebd1e926dc5fcf39dda39f.tar.bz2
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
Diffstat (limited to 'gdb/guile')
-rw-r--r--gdb/guile/scm-type.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-type.c b/gdb/guile/scm-type.c
index 936639c..dd45d8e 100644
--- a/gdb/guile/scm-type.c
+++ b/gdb/guile/scm-type.c
@@ -151,7 +151,7 @@ tyscm_eq_type_smob (const void *ap, const void *bp)
static htab_t
tyscm_type_map (struct type *type)
{
- struct objfile *objfile = type->objfile ();
+ struct objfile *objfile = type->objfile_owner ();
htab_t htab;
if (objfile == NULL)
@@ -351,7 +351,7 @@ tyscm_copy_type_recursive (void **slot, void *info)
{
type_smob *t_smob = (type_smob *) *slot;
htab_t copied_types = (htab_t) info;
- struct objfile *objfile = t_smob->type->objfile ();
+ struct objfile *objfile = t_smob->type->objfile_owner ();
htab_t htab;
eqable_gdb_smob **new_slot;
type_smob t_smob_for_lookup;