diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-13 18:17:49 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-13 18:17:49 +0000 |
commit | 9309b4d9291f1a40de779dbaf003b4e921e87c9e (patch) | |
tree | aaa42daa75df4a4969417766c729d16059e71d4c /gdb/config/m88k | |
parent | b7cbb59ff6d21d1f91bc6f87ee46511feed0966d (diff) | |
download | gdb-9309b4d9291f1a40de779dbaf003b4e921e87c9e.zip gdb-9309b4d9291f1a40de779dbaf003b4e921e87c9e.tar.gz gdb-9309b4d9291f1a40de779dbaf003b4e921e87c9e.tar.bz2 |
* printcmd.c (printf_command): Instead of using makeva* and
calling vprintf, just make the appropriate calls to printf.
* printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,
config/alpha/xm-alpha.h, config/m88k/xm-m88k.h: Remove all
traces of makeva*. My apologies to everyone (including me!)
who spent so much time getting it to work on various machines,
but look at the bright side, at least you won't have to do it
again in the future.
* printcmd.c (printf_command): Make a cleanup for val_args (fixes
a memory leak).
Diffstat (limited to 'gdb/config/m88k')
-rw-r--r-- | gdb/config/m88k/xm-m88k.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/gdb/config/m88k/xm-m88k.h b/gdb/config/m88k/xm-m88k.h index 3ff3512..8f24de9 100644 --- a/gdb/config/m88k/xm-m88k.h +++ b/gdb/config/m88k/xm-m88k.h @@ -18,31 +18,3 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HOST_BYTE_ORDER BIG_ENDIAN - -#define MAKEVA_END(list) \ - va_list retval; \ - retval.__va_arg = 0; \ - retval.__va_stk = (int *) (list)->aligner.arg_bytes; \ - retval.__va_reg = (int *) (list)->aligner.arg_bytes; \ - return retval; - -/* I don't know whether rounding the arguments to 4 or 8 bytes is correct - for the 88k, or whether it is just code borrowed from the pa. The issue - is moot for now, since printf_command only uses argsize of sizeof (int), - sizeof (double), or sizeof (long long). */ -#define MAKEVA_ARG(list, argaddr, argsize) \ - { \ - int rounded_argsize; \ - if (argsize > 8) \ - /* Currently this never happens; printf_command only uses argsize */ \ - /* of sizeof (int), sizeof (double), or sizeof (long long). */ \ - error ("MAKEVA_ARG not fully written for m88k"); \ - if (argsize <= 4) \ - rounded_argsize = 4; \ - else if (argsize <= 8) \ - rounded_argsize = 8; \ - while ((int)(&list->aligner.arg_bytes[list->argindex]) % rounded_argsize) \ - list->argindex++; \ - memcpy (&list->aligner.arg_bytes[list->argindex], argaddr, argsize); \ - list->argindex += rounded_argsize; \ - } |