aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2016-11-20 17:48:31 -0700
committerTom Tromey <tom@tromey.com>2017-01-10 19:14:09 -0700
commit50315b21779d71c172eb98a786a9b8281622e407 (patch)
treeff163e54508c6a8c959ff5f9f118debd34481bc0 /gdb/ChangeLog
parentfc4007c969ec4208fb7c7cee2f50211a9aa0f40f (diff)
downloadgdb-50315b21779d71c172eb98a786a9b8281622e407.zip
gdb-50315b21779d71c172eb98a786a9b8281622e407.tar.gz
gdb-50315b21779d71c172eb98a786a9b8281622e407.tar.bz2
Add gdb_ref_ptr.h
This adds a new gdb_ref_ptr.h, that implements a reference-counting smart pointer class, where the user of the class supplies a reference-counting policy object. This class will be used in the next patch, which changes most explicit BFD reference counts to use this new type. Meanwhile, this patch changes gdbpy_ref to be a specialization of this new class. This change required adding new nullptr_t overloads some operators in gdb_ref_ptr.h. I suspect this was needed because some Python header redefines NULL, but I'm not certain. 2017-01-10 Tom Tromey <tom@tromey.com> * common/gdb_ref_ptr.h: New file. * python/py-ref.h (struct gdbpy_ref_policy): New. (gdbpy_ref): Now a typedef.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f8658a9..5288e1d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2017-01-10 Tom Tromey <tom@tromey.com>
+ * common/gdb_ref_ptr.h: New file.
+ * python/py-ref.h (struct gdbpy_ref_policy): New.
+ (gdbpy_ref): Now a typedef.
+
+2017-01-10 Tom Tromey <tom@tromey.com>
+
* utils.h (make_cleanup_htab_delete): Don't declare.
* utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
Remove.