aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-26 16:34:28 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-29 16:44:21 -0400
commit2ad53ea10c14445d6074814bbdfe46bd787038cb (patch)
tree754f8b3ea284ae5ef76887619d2fb468b8067bd2 /gdb/ax-gdb.c
parentd8557c3d229589c690a1bef92be434eb663e3bb6 (diff)
downloadgdb-2ad53ea10c14445d6074814bbdfe46bd787038cb.zip
gdb-2ad53ea10c14445d6074814bbdfe46bd787038cb.tar.gz
gdb-2ad53ea10c14445d6074814bbdfe46bd787038cb.tar.bz2
gdb: remove TYPE_FIELD_LOC_KIND
Remove TYPE_FIELD_LOC_KIND, replace its uses with type::field + field::loc_kind. Change-Id: Ib124a26365df82ac1d23df7962d954192913bd90
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r--gdb/ax-gdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index e07ee3a..29d1bab 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -1438,7 +1438,7 @@ static void
gen_static_field (struct agent_expr *ax, struct axs_value *value,
struct type *type, int fieldno)
{
- if (TYPE_FIELD_LOC_KIND (type, fieldno) == FIELD_LOC_KIND_PHYSADDR)
+ if (type->field (fieldno).loc_kind () == FIELD_LOC_KIND_PHYSADDR)
{
ax_const_l (ax, TYPE_FIELD_STATIC_PHYSADDR (type, fieldno));
value->kind = axs_lvalue_memory;