From b10faa68a450b43f31b78cc11bd06774a256a0a4 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 19 Apr 2012 19:11:02 +0000 Subject: * cleanups.h (struct cleanup): Move to cleanups.c. (make_cleanup_dtor_ftype): New typedef. (make_cleanup_dtor): Use it. (ALL_CLEANUPS): Replace with ... (all_cleanups): ... this. Declare. All uses updated. * cleanups.c: #include "gdb_assert.h". (sentinel_cleanup): New static global. (SENTINEL_CLEANUP): Define. (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP. (make_my_cleanup2): Assert result is non-NULL. (all_cleanups): New function. (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead of NULL. --- gdb/ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1511fd4..dd5f7ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,19 @@ +2012-04-19 Doug Evans + + * cleanups.h (struct cleanup): Move to cleanups.c. + (make_cleanup_dtor_ftype): New typedef. + (make_cleanup_dtor): Use it. + (ALL_CLEANUPS): Replace with ... + (all_cleanups): ... this. Declare. All uses updated. + * cleanups.c: #include "gdb_assert.h". + (sentinel_cleanup): New static global. + (SENTINEL_CLEANUP): Define. + (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP. + (make_my_cleanup2): Assert result is non-NULL. + (all_cleanups): New function. + (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead + of NULL. + 2012-04-19 Pedro Alves * Makefile.in (GNULIB_BUILDDIR): New. -- cgit v1.1