Use gdbpy_ref in python.c
authorTom Tromey <tom@tromey.com>
Sun, 20 Nov 2016 17:46:23 +0000 (10:46 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:14:04 +0000 (19:14 -0700)
commit59876f8f9f32081b2831aed83a03a815e8d85a97
tree2ace1d3ba738187aab171108d6f9353f16937e05
parent97d83487d5fbffd04d68a049f97009e1df2562a3
Use gdbpy_ref in python.c

This changes more places in python.c to use gdbpy_ref.

Additionally, previously gdbpy_apply_type_printers would return
EXT_LANG_RC_ERROR if a type printer returned None.  However, that
doesn't seem correct to me; this patch changes it to return
EXT_LANG_RC_NOP in this case.

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

* python/python.c (eval_python_command, gdbpy_decode_line)
(gdbpy_run_events, gdbpy_start_type_printers)
(gdbpy_apply_type_printers): Use gdbpy_ref.
gdb/ChangeLog
gdb/python/python.c
This page took 0.026907 seconds and 4 git commands to generate.