aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-26 21:06:12 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-29 16:44:45 -0400
commitfcbbbd90f04a137e92681d6c6dcbea95688b0c5a (patch)
tree93d4707c635a9061fbce357798126adf849f48df /gdb/ax-gdb.c
parent970db5186051c051d9c5bd1f7ed404902b96fa80 (diff)
downloadgdb-fcbbbd90f04a137e92681d6c6dcbea95688b0c5a.zip
gdb-fcbbbd90f04a137e92681d6c6dcbea95688b0c5a.tar.gz
gdb-fcbbbd90f04a137e92681d6c6dcbea95688b0c5a.tar.bz2
gdb: remove TYPE_FIELD_STATIC_PHYSNAME
Remove TYPE_FIELD_STATIC_PHYSNAME, replace with type::field + field::loc_physname. Change-Id: Ie35d446b67dd1d02f39998b406001bdb7e6d5abb
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 b56652a..beeee65 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -1447,7 +1447,7 @@ gen_static_field (struct agent_expr *ax, struct axs_value *value,
}
else
{
- const char *phys_name = TYPE_FIELD_STATIC_PHYSNAME (type, fieldno);
+ const char *phys_name = type->field (fieldno).loc_physname ();
struct symbol *sym = lookup_symbol (phys_name, 0, VAR_DOMAIN, 0).symbol;
if (sym)