From 970441058c4fc01a3a78773a004196e3037825ed Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Jan 2023 12:16:29 -0700 Subject: Convert value_lval_const and deprecated_lval_hack to methods This converts the value_lval_const and deprecated_lval_hack functions to be methods on value. Approved-By: Simon Marchi --- gdb/f-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/f-lang.c') diff --git a/gdb/f-lang.c b/gdb/f-lang.c index d88e81c..57c31ef 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -458,7 +458,7 @@ fortran_associated (struct gdbarch *gdbarch, const language_defn *lang, looking the value of the pointer itself. We make the assumption that a non-associated pointer will be set to 0. This is probably true for most targets, but might not be true for everyone. */ - if (value_lval_const (target) != lval_memory + if (target->lval () != lval_memory || type_not_associated (pointer_type) || (TYPE_ASSOCIATED_PROP (pointer_type) == nullptr && pointer_type->code () == TYPE_CODE_PTR -- cgit v1.1