* MAINTAINERS (x86-64): Add myself

* x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
changed value_ptr -> struct value *
This commit is contained in:
Michal Ludvig
2002-03-04 11:08:28 +00:00
parent 9b17d183bf
commit e9f30c21b8
3 changed files with 9 additions and 3 deletions

View File

@@ -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;