From 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Jan 2023 13:25:17 -0700 Subject: Turn allocate_value into a static "constructor" This changes allocate_value to be a static "constructor" of value. Approved-By: Simon Marchi --- gdb/python/py-xmethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-xmethods.c') diff --git a/gdb/python/py-xmethods.c b/gdb/python/py-xmethods.c index d3afd26..2db6793 100644 --- a/gdb/python/py-xmethods.c +++ b/gdb/python/py-xmethods.c @@ -580,7 +580,7 @@ python_xmethod_worker::invoke (struct value *obj, } else { - res = allocate_value (lookup_typename (current_language, + res = value::allocate (lookup_typename (current_language, "void", NULL, 0)); } -- cgit v1.1