diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-02 05:45:11 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-02 05:45:11 +0000 |
commit | 8acf767cf1683e10757deeecde3b25f53b3734d0 (patch) | |
tree | 4d48718e0be248795d206f36d77673a5b15e25b1 /gdb | |
parent | 22202966ce66e9e8076fd55b244d78e93c5489ca (diff) | |
download | gdb-8acf767cf1683e10757deeecde3b25f53b3734d0.zip gdb-8acf767cf1683e10757deeecde3b25f53b3734d0.tar.gz gdb-8acf767cf1683e10757deeecde3b25f53b3734d0.tar.bz2 |
* printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/printcmd.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 16f8cd6..42c7079 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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 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; |