Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: gdb/cleanups.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/cleanups.h ('k') | gdb/cli-out.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/cleanups.c
diff --git a/gdb/cleanups.c b/gdb/cleanups.c
index d2f70fc404060f419af8958b18ffe5c0db6e0b64..898e526e278b2aa0591349b4e41b21cd52f0c558 100644
--- a/gdb/cleanups.c
+++ b/gdb/cleanups.c
@@ -1,6 +1,6 @@
/* Cleanup routines for GDB, the GNU debugger.
- Copyright (C) 1986, 1988-2012 Free Software Foundation, Inc.
+ Copyright (C) 1986-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -261,6 +261,10 @@ save_final_cleanups (void)
static void
restore_my_cleanups (struct cleanup **pmy_chain, struct cleanup *chain)
{
+ if (*pmy_chain != SENTINEL_CLEANUP)
+ internal_warning (__FILE__, __LINE__,
+ _("restore_my_cleanups has found a stale cleanup"));
+
*pmy_chain = chain;
}
« no previous file with comments | « gdb/cleanups.h ('k') | gdb/cli-out.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698