]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-11-04 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 4 Nov 2002 21:50:39 +0000 (21:50 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 4 Nov 2002 21:50:39 +0000 (21:50 +0000)
* interps.c (interpreter_completer): Initialize alloced.
(struct gdb_interpreter): Reformat.

gdb/ChangeLog
gdb/interps.c

index 443b3f43f772bea185d9ff77473be294b173c12a..75f5ec3ae90c35736fe079cdd25f07230fb253cb 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-04  Elena Zannoni  <ezannoni@redhat.com>
+
+       * interps.c (interpreter_completer): Initialize alloced.
+       (struct gdb_interpreter): Reformat.
+
 2002-11-04  Elena Zannoni  <ezannoni@redhat.com>
 
        * interps.h (struct gdb_interpreter_procs): Remove do_one_event_proc.
index bf60bbbe33bbc5f8af4d1ef82891cb898ecfaa0e..68305bea3e140b690591aec39339d2521d63348f 100644 (file)
 
 struct gdb_interpreter
 {
-  char *name;                  /* This is the name in "-i=" and set interpreter. */
-  struct gdb_interpreter *next;        /* Interpreters are stored in a linked list, 
-                                  this is the next one... */
-  void *data;                  /* This is a cookie that the instance of the 
-                                  interpreter can use, for instance to call 
-                                  itself in hook functions */
-  int inited;                  /* Has the init_proc been run? */
-  struct ui_out *interpreter_out;      /* This is the ui_out used to collect 
-                                          results for this interpreter.  It can 
-                                          be a formatter for stdout, as is the 
-                                          case for the console & mi outputs, or it 
-                                          might be a result formatter. */
+  /* This is the name in "-i=" and set interpreter. */
+  char *name;
+
+  /* Interpreters are stored in a linked list, this is the next one... */
+  struct gdb_interpreter *next;
+
+  /* This is a cookie that the instance of the interpreter can use, for
+     instance to call itself in hook functions */
+  void *data;
+
+  /* Has the init_proc been run? */
+  int inited;
+
+  /* This is the ui_out used to collect results for this interpreter.
+     It can be a formatter for stdout, as is the case for the console
+     & mi outputs, or it might be a result formatter. */
+  struct ui_out *interpreter_out;      
+
   struct gdb_interpreter_procs procs;
   int quiet_p;
 };
@@ -556,7 +562,8 @@ interpreter_exec_cmd (char *args, int from_tty)
 static char **
 interpreter_completer (char *text, char *word)
 {
-  int alloced, textlen;
+  int alloced = 0;
+  int textlen;
   int num_matches;
   char **matches;
   struct gdb_interpreter *interp;