binutils-gdb/gdb/python
Tom Tromey a68ff33e0d 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.
2017-01-10 19:13:29 -07:00
..
lib/gdb update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-arch.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-auto-load.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-block.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-bpevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-breakpoint.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-cmd.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-continueevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-event.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-event.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-events.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-evtregistry.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-evts.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-exitedevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-finishbreakpoint.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-frame.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-framefilter.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-function.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-gdb-readline.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-inferior.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-infevents.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-infthread.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-lazy-string.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-linetable.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-newobjfileevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-objfile.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-param.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-prettyprint.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-progspace.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-ref.h Introduce py-ref.h 2017-01-10 19:13:29 -07:00
py-signalevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-stopevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-stopevent.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-symbol.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-symtab.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-threadevent.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-type.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-unwind.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-utils.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-value.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-varobj.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-xmethods.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
python-config.py Add support for Python 3. 2012-12-12 16:47:30 +00:00
python-internal.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
python.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
python.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00