Turn value_copy into a method

This turns value_copy into a method of value.  Much of this was
written by script.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 14:43:22 -07:00
parent e18312bb59
commit cda0334434
10 changed files with 51 additions and 49 deletions

View File

@ -663,7 +663,7 @@ gdbpy_get_varobj_pretty_printer (struct value *value)
{
try
{
value = value_copy (value);
value = value->copy ();
}
catch (const gdb_exception &except)
{