Remove value::copy call from gdbpy_get_varobj_pretty_printer
authorTom Tromey <tromey@adacore.com>
Fri, 4 Aug 2023 13:58:32 +0000 (07:58 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 22 Aug 2023 16:38:45 +0000 (10:38 -0600)
commit72275f1e6a2566569ac23fb8a2b2f6dbcf535408
treef810af1caf1662f1c923022ff213cfc379ab5be3
parenta4822788d7c41926941b1c6c405c82aeffb72ad7
Remove value::copy call from gdbpy_get_varobj_pretty_printer

I noticed a call to value::copy in gdbpy_get_varobj_pretty_printer,
and I couldn't figure out why it was there.  I think maybe it came
from the time when value_to_value_object would release values from the
value chain -- but that was removed in commit f3d3bbbc.

This patch removes this call.  Regression tested on x86-64 Fedora 36.
gdb/python/py-prettyprint.c