aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-23 23:43:13 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-29 16:44:21 -0400
commit3a543e211e963c6ff131e9275524d4632309f15b (patch)
tree56ab4d72be7729aa1e013f4b00476a66856127fb /gdb/guile
parent8d939e8ea4b05a263579b533850a983668ccd1fa (diff)
downloadgdb-3a543e211e963c6ff131e9275524d4632309f15b.zip
gdb-3a543e211e963c6ff131e9275524d4632309f15b.tar.gz
gdb-3a543e211e963c6ff131e9275524d4632309f15b.tar.bz2
gdb: remove FIELD_BITPOS macro
Remove FIELD_BITPOD, replace its uses with field::loc_bitpos. Change-Id: Idb99297e0170661254276c206383a7e9bf1a935a
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 04d3d75..bd8c113 100644
--- a/gdb/guile/scm-type.c
+++ b/gdb/guile/scm-type.c
@@ -1183,7 +1183,7 @@ gdbscm_field_bitpos (SCM self)
SCM_ASSERT_TYPE (type->code () != TYPE_CODE_ENUM,
self, SCM_ARG1, FUNC_NAME, _("non-enum type"));
- return scm_from_long (FIELD_BITPOS (*field));
+ return scm_from_long (field->loc_bitpos ());
}
/* (field-bitsize <gdb:field>) -> integer
@@ -1196,7 +1196,7 @@ gdbscm_field_bitsize (SCM self)
= tyscm_get_field_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME);
struct field *field = tyscm_field_smob_to_field (f_smob);
- return scm_from_long (FIELD_BITPOS (*field));
+ return scm_from_long (field->loc_bitpos ());
}
/* (field-artificial? <gdb:field>) -> boolean