aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/pa
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-13 18:17:49 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-13 18:17:49 +0000
commit9309b4d9291f1a40de779dbaf003b4e921e87c9e (patch)
treeaaa42daa75df4a4969417766c729d16059e71d4c /gdb/config/pa
parentb7cbb59ff6d21d1f91bc6f87ee46511feed0966d (diff)
downloadgdb-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/pa')
-rw-r--r--gdb/config/pa/xm-pa.h28
1 files changed, 3 insertions, 25 deletions
diff --git a/gdb/config/pa/xm-pa.h b/gdb/config/pa/xm-pa.h
index 4b12910..979609d 100644
--- a/gdb/config/pa/xm-pa.h
+++ b/gdb/config/pa/xm-pa.h
@@ -1,27 +1,5 @@
/* Definitions for all PA machines. */
-#define MAKEVA_START(list) \
- list->argindex = list->nargs * list->max_arg_size;
-
-#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 hp-pa"); \
- if (argsize <= 4) \
- rounded_argsize = 4; \
- else if (argsize <= 8) \
- rounded_argsize = 8; \
- list->argindex -= rounded_argsize; \
- while ((int)(&list->aligner.arg_bytes[list->argindex]) % rounded_argsize) \
- list->argindex--; \
- memcpy (&list->aligner.arg_bytes[list->argindex], argaddr, argsize); \
- }
-
-/* The address of the arglist is the address right after the args
- (which is what you'd expect). */
-#define MAKEVA_END(list) \
- return (va_list) (list->aligner.arg_bytes \
- + list->nargs * list->max_arg_size)
+/* This was created for "makeva", which is obsolete. This file can
+ probably go away (unless someone can think of some other host thing
+ which is common to various pa machines). */