aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mips
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/mips
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/mips')
-rw-r--r--gdb/config/mips/xm-makeva.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/gdb/config/mips/xm-makeva.h b/gdb/config/mips/xm-makeva.h
index 46974e0..4e002f9 100644
--- a/gdb/config/mips/xm-makeva.h
+++ b/gdb/config/mips/xm-makeva.h
@@ -16,20 +16,6 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* Mips hosts need aligned va_list arguments. */
-
-#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 mips"); \
- if (argsize <= 4) \
- rounded_argsize = 4; \
- else if (argsize <= 8) \
- rounded_argsize = 8; \
- list->argindex = (list->argindex + rounded_argsize - 1) & -rounded_argsize; \
- memcpy (&list->aligner.arg_bytes[list->argindex], argaddr, argsize); \
- list->argindex += argsize; \
- }
+/* "makeva" is obsolete. This file can probably go away (unless someone
+ can think of some other host thing which is common to various mips
+ machines). */