diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index cdea5a6..e1901d1 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -208,6 +208,14 @@ make_cleanup (make_cleanup_ftype *function, void *arg) } struct cleanup * +make_cleanup_dtor (make_cleanup_ftype *function, void *arg, + void (*dtor) (void *)) +{ + return make_my_cleanup2 (&cleanup_chain, + function, arg, dtor); +} + +struct cleanup * make_final_cleanup (make_cleanup_ftype *function, void *arg) { return make_my_cleanup (&final_cleanup_chain, function, arg); |