aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-03-04 11:08:28 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-03-04 11:08:28 +0000
commite9f30c21b883da77bd571bf53dcd58e820669088 (patch)
treee88c4c61de73bcf87085d69331842f2c01b32347 /gdb/x86-64-tdep.c
parent9b17d183bf378b77539a3409ff2fe940904c9ded (diff)
downloadgdb-e9f30c21b883da77bd571bf53dcd58e820669088.zip
gdb-e9f30c21b883da77bd571bf53dcd58e820669088.tar.gz
gdb-e9f30c21b883da77bd571bf53dcd58e820669088.tar.bz2
* MAINTAINERS (x86-64): Add myself
* x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs, changed value_ptr -> struct value *
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r--gdb/x86-64-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index c13dd34..b7751cc 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;