use remote-utils facilities for baud_rate
[deliverable/binutils-gdb.git] / gdb / printcmd.c
index 16f8cd6620ac646ba47e485a223a0c5673c4a38d..bd9035376c85d2caceceb0838b2f42345015529f 100644 (file)
@@ -1761,6 +1761,11 @@ printf_command (arg, from_tty)
     int nargs_wanted;
     int lcount;
     int i;
+    /* We build up a va_list to pass to vprintf.  This is unnecessary;
+       instead of calling vprintf ("%d%f", <constructed va_list>) we
+       could just call printf ("%d", arg1); printf ("%f", arg2);.  Funny
+       how I thought of that right *after* I got the MAKEVA stuff pretty much
+       working...  */
     makeva_list *args_makeva;
 
     argclass = (enum argclass *) alloca (strlen (s) * sizeof *argclass);
@@ -1786,10 +1791,10 @@ printf_command (arg, from_tty)
            argclass[nargs_wanted++] = int_arg;
          f++;
        }
+
     /* Now, parse all arguments and evaluate them.
        Store the VALUEs in VAL_ARGS.  */
+
     while (*s != '\0')
       {
        char *s1;
This page took 0.02379 seconds and 4 git commands to generate.