aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-06-28 08:32:28 -0600
committerTom Tromey <tromey@adacore.com>2019-07-10 12:24:22 -0600
commit05b08ac1608c8355201db21fe4c871677466f0d5 (patch)
tree3650b8b89370b689d1505e74a3035a61f7360b60 /gdb/ChangeLog
parent32372d80caba2e223157eca6db2fb0e65369c3c7 (diff)
downloadgdb-05b08ac1608c8355201db21fe4c871677466f0d5.zip
gdb-05b08ac1608c8355201db21fe4c871677466f0d5.tar.gz
gdb-05b08ac1608c8355201db21fe4c871677466f0d5.tar.bz2
Reduce manual reference counting in py-inferior.c
This patch changes py-inferior.c to use gdbpy_ref<> when possible, reducing the amount of manual reference counting. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-07-10 Tom Tromey <tromey@adacore.com> * python/python-internal.h (create_thread_object): Return gdbpy_ref. * python/py-infthread.c (create_thread_object): Return gdbpy_ref. * python/py-inferior.c (struct threadlist_entry): Add constructor. <thread_obj>: Now a gdbpy_ref. (thread_to_thread_object): Update. (add_thread_object): Use new. (delete_thread_object): Use delete. (infpy_threads): Update. (py_free_inferior): Update. Construct "inf_obj" after acquiring GIL.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 410a8d8..41932c1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,20 @@
2019-07-10 Tom Tromey <tromey@adacore.com>
+ * python/python-internal.h (create_thread_object): Return
+ gdbpy_ref.
+ * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
+ * python/py-inferior.c (struct threadlist_entry): Add
+ constructor.
+ <thread_obj>: Now a gdbpy_ref.
+ (thread_to_thread_object): Update.
+ (add_thread_object): Use new.
+ (delete_thread_object): Use delete.
+ (infpy_threads): Update.
+ (py_free_inferior): Update. Construct "inf_obj" after acquiring
+ GIL.
+
+2019-07-10 Tom Tromey <tromey@adacore.com>
+
* valops.c (value_cast): Specialize error message for Ada.
2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>