From e9f30c21b883da77bd571bf53dcd58e820669088 Mon Sep 17 00:00:00 2001 From: Michal Ludvig Date: Mon, 4 Mar 2002 11:08:28 +0000 Subject: [PATCH] * MAINTAINERS (x86-64): Add myself * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs, changed value_ptr -> struct value * --- gdb/ChangeLog | 6 ++++++ gdb/MAINTAINERS | 2 +- gdb/x86-64-tdep.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dae10ffbd4..cc4a7eb023 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-03-03 Michal Ludvig + + * MAINTAINERS (x86-64): Add myself. + * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs, + changed value_ptr -> struct value * + 2002-03-01 David O'Brien * configure.host (sparc64-*-freebsd): Add. diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index 0cefcb126b..a4b15387c4 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -171,7 +171,7 @@ maintainer works with the native maintainer when resolving API issues. w65 Deleted. x86-64 (--target=x86_64-linux-gnu broken) - Maintenance only + Michal Ludvig mludvig@suse.cz xstormy16 --target=xstormy16-elf ,-Werror Corinna Vinschen vinschen@redhat.com diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index c13dd349b4..b7751cc446 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -569,7 +569,7 @@ x86_64_push_arguments (int nargs, struct value **args, CORE_ADDR sp, }; int stack_values_count = 0; int *stack_values; - stack_values = alloca (naregs * sizeof (int)); + stack_values = alloca (nargs * sizeof (int)); for (i = 0; i < nargs; i++) { enum x86_64_reg_class class[MAX_CLASSES]; @@ -639,7 +639,7 @@ x86_64_push_arguments (int nargs, struct value **args, CORE_ADDR sp, } while (--stack_values_count >= 0) { - value_ptr arg = args[stack_values[stack_values_count]]; + struct value *arg = args[stack_values[stack_values_count]]; int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg)); len += 7; len -= len % 8;