From 6c49729e593cd1577080b082be81fe113f8d7943 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 Feb 2023 07:27:50 -0700 Subject: Turn various value copying-related functions into methods This patch turns a grab bag of value functions to methods of value. These are done together because their implementations are interrelated. Approved-By: Simon Marchi --- gdb/gnu-v2-abi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/gnu-v2-abi.c') diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index e820266..fa46d47 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -127,7 +127,7 @@ gnuv2_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j, /* The virtual function table is now an array of structures which have the form { int16 offset, delta; void *pfn; }. */ - vtbl = value_primitive_field (arg1, 0, context_vptr_fieldno, + vtbl = arg1->primitive_field (0, context_vptr_fieldno, context_vptr_basetype); /* With older versions of g++, the vtbl field pointed to an array -- cgit v1.1