summaryrefslogtreecommitdiff
path: root/gdb/gdbtk
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-02-21 17:26:29 +0000
committerTom Tromey <tromey@redhat.com>2003-02-21 17:26:29 +0000
commitbf83e7a188dfdce39664e8c0d1a0f12f3922a37d (patch)
tree9282702f6b0301e59a218ef6c778e02fef0bd9e1 /gdb/gdbtk
parentc4a0181c4141274403bdc3b095912e28ed1d372c (diff)
downloadgdb-bf83e7a188dfdce39664e8c0d1a0f12f3922a37d.tar.gz
* generic/gdbtk-interp.c (gdbtk_interpreter_init): Declare locals
before code.
Diffstat (limited to 'gdb/gdbtk')
-rw-r--r--gdb/gdbtk/ChangeLog5
-rw-r--r--gdb/gdbtk/generic/gdbtk-interp.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index a544b135bab..42fd5edfe0f 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-21 Tom Tromey <tromey@redhat.com>
+
+ * generic/gdbtk-interp.c (gdbtk_interpreter_init): Declare locals
+ before code.
+
2003-02-21 Daniel Jacobowitz <drow@mvista.com>
* generic/gdbtk-stack.c (gdb_get_blocks, gdb_block_vars)
diff --git a/gdb/gdbtk/generic/gdbtk-interp.c b/gdb/gdbtk/generic/gdbtk-interp.c
index 6dc37504940..dedaff68d10 100644
--- a/gdb/gdbtk/generic/gdbtk-interp.c
+++ b/gdb/gdbtk/generic/gdbtk-interp.c
@@ -56,14 +56,14 @@ hack_disable_interpreter_exec (char *args, int from_tty)
static void *
gdbtk_interpreter_init (void)
{
- gdbtk_init ();
-
/* Disable interpreter-exec. It causes us big trouble right now. */
struct cmd_list_element *cmd = NULL;
struct cmd_list_element *alias = NULL;
struct cmd_list_element *prefix = NULL;
struct cmd_list_element *c;
+ gdbtk_init ();
+
if (lookup_cmd_composition ("interpreter-exec", &alias, &prefix, &cmd))
{
set_cmd_cfunc (cmd, hack_disable_interpreter_exec);