mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
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.
This commit is contained in:
@@ -661,15 +661,6 @@ apply_varobj_pretty_printer (PyObject *printer_obj,
|
||||
gdbpy_ref<>
|
||||
gdbpy_get_varobj_pretty_printer (struct value *value)
|
||||
{
|
||||
try
|
||||
{
|
||||
value = value->copy ();
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
}
|
||||
|
||||
gdbpy_ref<> val_obj (value_to_value_object (value));
|
||||
if (val_obj == NULL)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user