]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/python/python.c
Use gdbpy_enter in gdbpy_before_prompt_hook
authorTom Tromey <tom@tromey.com>
Tue, 8 Nov 2016 22:13:49 +0000 (15:13 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:47 +0000 (19:13 -0700)
commita88b13c7e36e8eb0a3bf772d508380682536c0da
tree92e4fbd8e492af6420fb9f02113bf9281ed7b48c
parente9f0c3639f33dc76fcab1b9299209c29ef2ee26e
Use gdbpy_enter in gdbpy_before_prompt_hook

Change gdbpy_before_prompt_hook to use gdbpy_enter and gdbpy_ref.
This also rearranges the function a tiny bit to make it more clear.

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

* python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
gdbpy_ref.
gdb/ChangeLog
gdb/python/python.c