Introduce htab_up and use gdbpy_enter in py-framefilter.c
authorTom Tromey <tom@tromey.com>
Tue, 8 Nov 2016 18:11:55 +0000 (11:11 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 11 Jan 2017 02:13:46 +0000 (19:13 -0700)
commit6349f452e01ddb7a1e64b8a63c93a9c9abc95725
tree90083421b411483f6dbf9c18ebe0906b3a00fbe4
parentc0171de646ddd85bac9d4bb1ebdf601f7ba7eeab
Introduce htab_up and use gdbpy_enter in py-framefilter.c

This introduces a new "htab_up" typedef, which is a std::unique_ptr
that can call htab_delete.  Then it changes some code in
py-framefilter.c to use both gdbpy_enter and the new htab_up.

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

* utils.h (htab_deleter): New struct.
(htab_up): New typedef.
* python/py-framefilter.c (gdbpy_apply_frame_filter): Use
gdbpy_enter, gdbpy_ref, htab_up.
gdb/ChangeLog
gdb/python/py-framefilter.c
gdb/utils.h