Use gdbpy_enter in py-prettyprint.c
authorTom Tromey <tom@tromey.com>
Tue, 8 Nov 2016 18:38:22 +0000 (11:38 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:46 +0000 (19:13 -0700)
commite9f0c3639f33dc76fcab1b9299209c29ef2ee26e
tree4ad6db2c896a5b6e2b2dfd1be58a4169038647bd
parent6349f452e01ddb7a1e64b8a63c93a9c9abc95725
Use gdbpy_enter in py-prettyprint.c

Change py-prettyprint.c to use gdbpy_enter.

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

* python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
gdb/ChangeLog
gdb/python/py-prettyprint.c