diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-04 07:58:32 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-22 10:38:45 -0600 |
commit | 72275f1e6a2566569ac23fb8a2b2f6dbcf535408 (patch) | |
tree | f810af1caf1662f1c923022ff213cfc379ab5be3 /gdb/python | |
parent | a4822788d7c41926941b1c6c405c82aeffb72ad7 (diff) | |
download | gdb-72275f1e6a2566569ac23fb8a2b2f6dbcf535408.zip gdb-72275f1e6a2566569ac23fb8a2b2f6dbcf535408.tar.gz gdb-72275f1e6a2566569ac23fb8a2b2f6dbcf535408.tar.bz2 |
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.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-prettyprint.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index 29ae020..cccc94e 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -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; |