aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDrew Moseley <dmoseley@cygnus>1998-08-13 20:15:20 +0000
committerDrew Moseley <dmoseley@cygnus>1998-08-13 20:15:20 +0000
commit1dd251f99ddcc3d09548e71704066aeba8be8d4a (patch)
tree3e4863b11241f7ef8d1e5122d9f8764589984497 /gdb
parent6b34ac5a5c80ef5cff38d13f138c16dcfef71047 (diff)
downloadgdb-1dd251f99ddcc3d09548e71704066aeba8be8d4a.zip
gdb-1dd251f99ddcc3d09548e71704066aeba8be8d4a.tar.gz
gdb-1dd251f99ddcc3d09548e71704066aeba8be8d4a.tar.bz2
Added a scope-level around the contents of an #ifdef in
gdbtk_cleanup() so that the variable declarations in there would not be illegal in a C compilation.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog-gdbtk6
-rw-r--r--gdb/gdbtk.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk
index 42b7b0d..2b7e46a 100644
--- a/gdb/ChangeLog-gdbtk
+++ b/gdb/ChangeLog-gdbtk
@@ -1,3 +1,9 @@
+Thu Aug 13 15:09:59 1998 Drew Moseley <dmoseley@cygnus.com>
+
+ * gdbtk.c (gdbtk_cleanup): added a scope-level around the contents
+ of the #ifdef so that the variable declarations in there would not
+ be illegal in a C compilation.
+
Mon Jul 27 13:07:16 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_call_command): Removed because it is now
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 01cf3dd..e8d31ad 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -298,8 +298,10 @@ gdbtk_cleanup (dummy)
{
Tcl_Eval (gdbtk_interp, "gdbtk_cleanup");
#ifdef IDE
- struct ide_event_handle *h = (struct ide_event_handle *) dummy;
- ide_interface_deregister_all (h);
+ {
+ struct ide_event_handle *h = (struct ide_event_handle *) dummy;
+ ide_interface_deregister_all (h);
+ }
#endif
Tcl_Finalize ();
}