binutils-gdb/gdb/python
Tom Tromey 905f2ccab1 Use gdbpy_ref in py-cmd.c
This changes py-cmd.c to use gdbpy_ref in more places.  This also
fixes a latent memory leak in cmdpy_completer_helper, which
unnecessarily increfs the result of PyObject_CallMethodObjArgs.  This
is not needed because that function returns a new reference.

2017-01-10  Tom Tromey  <tom@tromey.com>

	* python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref.  Remove
	extra incref.
	(cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
	Use gdbpy_ref.
2017-01-10 19:14:01 -07:00
..
lib/gdb update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-arch.c Use gdbpy_ref in archpy_disassemble 2017-01-10 19:13:59 -07: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 Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-breakpoint.c Use gdbpy_ref in gdbpy_breakpoint_cond_says_stop 2017-01-10 19:14:00 -07:00
py-cmd.c Use gdbpy_ref in py-cmd.c 2017-01-10 19:14:01 -07:00
py-continueevent.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-event.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-event.h Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07: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 Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-finishbreakpoint.c Use gdbpy_enter in py-finishbreakpoint.c 2017-01-10 19:13:40 -07:00
py-frame.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-framefilter.c Use gdbpy_ref in py_print_frame 2017-01-10 19:13:57 -07:00
py-function.c Use gdbpy_enter in fnpy_call 2017-01-10 19:13:53 -07:00
py-gdb-readline.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-inferior.c Use gdbpy_enter in py-inferior.c 2017-01-10 19:13:41 -07:00
py-infevents.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-infthread.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-lazy-string.c Change type of encoding argument to gdbpy_extract_lazy_string 2017-01-10 19:13:55 -07:00
py-linetable.c Use gdbpy_ref in py-linetable.c 2017-01-10 19:13:34 -07:00
py-newobjfileevent.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-objfile.c Use gdbpy_enter in py-objfile.c 2017-01-10 19:13:42 -07:00
py-param.c Use gdbpy_enter in py-param.c 2017-01-10 19:13:53 -07:00
py-prettyprint.c Use gdbpy_ref in py-prettyprint.c 2017-01-10 19:13:58 -07:00
py-progspace.c Use gdbpy_enter in py-progspace.c 2017-01-10 19:13:42 -07:00
py-ref.h Introduce py-ref.h 2017-01-10 19:13:29 -07:00
py-signalevent.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-stopevent.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-stopevent.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-symbol.c Use gdbpy_ref in gdbpy_lookup_symbol 2017-01-10 19:13:38 -07:00
py-symtab.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-threadevent.c Change event code to use gdbpy_ref 2017-01-10 19:13:29 -07:00
py-type.c Use gdbpy_enter in py-type.c 2017-01-10 19:13:44 -07:00
py-unwind.c Use gdbpy_enter in py-unwind.c 2017-01-10 19:13:45 -07:00
py-utils.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
py-value.c Use gdbpy_ref in py-value.c 2017-01-10 19:13:37 -07:00
py-varobj.c Use gdbpy_enter_varobj in py-varobj.c 2017-01-10 19:13:51 -07:00
py-xmethods.c Use gdbpy_enter in py-xmethod.c 2017-01-10 19:13:50 -07:00
python-config.py
python-internal.h Remove ensure_python_env 2017-01-10 19:13:57 -07:00
python.c Change python_run_simple_file to use gdbpy_ref 2017-01-10 19:13:59 -07:00
python.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00