Remove make_cleanup_unpush_target
authorTom Tromey <tom@tromey.com>
Wed, 28 Mar 2018 21:49:24 +0000 (15:49 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Mar 2018 19:10:42 +0000 (13:10 -0600)
commit9ae79dac31c2bcbd2f5418da2e12af94060e139a
tree3c75e61dca77791339abe7b5d132b49633fbe7d2
parentf2ab4b4206781d75c76962b3ef7dd08b3489c40e
Remove make_cleanup_unpush_target

This removes make_cleanup_unpush_target, replacing it with a
unique_ptr.  This may seem odd, because the object in question is not
actually freed, but unique_ptr provided the necessary functionality.

Tested by the buildbot.

gdb/ChangeLog
2018-03-30  Tom Tromey  <tom@tromey.com>

* utils.h (make_cleanup_unpush_target): Remove.
* inf-ptrace.c (struct target_unpusher): New.
(target_unpush_up) New typedef.
(inf_ptrace_create_inferior, inf_ptrace_attach): Use
target_unpush_up.
* utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
gdb/ChangeLog
gdb/inf-ptrace.c
gdb/utils.c
gdb/utils.h
This page took 0.025731 seconds and 4 git commands to generate.