aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2016-11-05 13:43:23 -0600
committerTom Tromey <tom@tromey.com>2017-01-10 19:13:29 -0700
commita68ff33e0dcb4733584265088030d12a31e740e4 (patch)
tree5523d403f4d3fb6ea32b673fa3f60c3d56d15e70 /gdb/python/py-breakpoint.c
parent0b67023188fef926357f0fd27e600195ab35727e (diff)
downloadgdb-a68ff33e0dcb4733584265088030d12a31e740e4.zip
gdb-a68ff33e0dcb4733584265088030d12a31e740e4.tar.gz
gdb-a68ff33e0dcb4733584265088030d12a31e740e4.tar.bz2
Introduce py-ref.h
This patch introduces class gdbpy_ref, which is a sort of smart pointer that owns a single Python reference to a PyObject. This class acts a bit like unique_ptr, but also a bit like shared_ptr (in that copies do what you might expect); I considered going solely with unique_ptr but it seemed quite strange to have a unique_ptr that actually manages a shared resource. Subsequent patches use this new class to simplify logic in the Python layer. 2017-01-10 Tom Tromey <tom@tromey.com> * python/py-ref.h: New file.
Diffstat (limited to 'gdb/python/py-breakpoint.c')
0 files changed, 0 insertions, 0 deletions