aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-06-08 15:26:06 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-06-08 15:26:06 -0400
commitb6cdac4b80c1d32726227305e16483cef9d40e2c (patch)
treee0c9024b3fdc965e0543515761772f6e154e04cc /gdb/guile
parent5d14b6e5d6525ce462c30501644922a10f8682eb (diff)
downloadbinutils-b6cdac4b80c1d32726227305e16483cef9d40e2c.zip
binutils-b6cdac4b80c1d32726227305e16483cef9d40e2c.tar.gz
binutils-b6cdac4b80c1d32726227305e16483cef9d40e2c.tar.bz2
gdb: remove FIELD_TYPE macro
Remove the `FIELD_TYPE` macro, changing all the call sites to use `field::type` directly. gdb/ChangeLog: * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites to use field::type instead. Change-Id: I7673fedaa276e485189c87991a9043495da22ef5
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 a6a6b77..a36f0ba 100644
--- a/gdb/guile/scm-type.c
+++ b/gdb/guile/scm-type.c
@@ -1147,8 +1147,8 @@ gdbscm_field_type (SCM self)
struct field *field = tyscm_field_smob_to_field (f_smob);
/* A field can have a NULL type in some situations. */
- if (FIELD_TYPE (*field))
- return tyscm_scm_from_type (FIELD_TYPE (*field));
+ if (field->type ())
+ return tyscm_scm_from_type (field->type ());
return SCM_BOOL_F;
}