aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-05-23 17:39:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-05-23 17:39:54 -0400
commitceacbf6edf2c72aaa16280205a9bfc8513e9ed27 (patch)
tree0e801f13f8c4c59f584af1e1cd5c9e49b225c3ab /gdb/guile
parent26f16254544873f4d7450f6fbbc8f34bf3d2e359 (diff)
downloadgdb-ceacbf6edf2c72aaa16280205a9bfc8513e9ed27.zip
gdb-ceacbf6edf2c72aaa16280205a9bfc8513e9ed27.tar.gz
gdb-ceacbf6edf2c72aaa16280205a9bfc8513e9ed27.tar.bz2
gdb: remove TYPE_FIELD macro
Replace all uses of it by type::field. Note that since type::field returns a reference to the field, some spots are used to assign the whole field structure. See ctfread.c, function attach_fields_to_type, for example. This is the same as was happening with the macro, so I don't think it's a problem, but if anybody sees a really nicer way to do this, now could be a good time to implement it. gdb/ChangeLog: * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with type::field.
Diffstat (limited to 'gdb/guile')
-rw-r--r--gdb/guile/scm-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/guile/scm-type.c b/gdb/guile/scm-type.c
index e58f147..6c0c3fd 100644
--- a/gdb/guile/scm-type.c
+++ b/gdb/guile/scm-type.c
@@ -514,7 +514,7 @@ tyscm_field_smob_to_field (field_smob *f_smob)
/* This should be non-NULL by construction. */
gdb_assert (type->fields () != NULL);
- return &TYPE_FIELD (type, f_smob->field_num);
+ return &type->field (f_smob->field_num);
}
/* Type smob accessors. */