From: Mark Kettenis Date: Sun, 5 Oct 2003 22:13:24 +0000 (+0000) Subject: * x86-64-tdep.c (x86_64_store_return_value): Don't use X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae53de438ea06bbf1832c48737c458de593a9961;p=binutils-gdb.git * x86-64-tdep.c (x86_64_store_return_value): Don't use DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register names for return values. This fixes a bug since we looked at %rbx instead of %rdx. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1d01634f53e..e573e90b25a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-10-06 Mark Kettenis + + * x86-64-tdep.c (x86_64_store_return_value): Don't use + DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register + names for return values. This fixes a bug since we looked at %rbx + instead of %rdx. + 2003-10-05 Mark Kettenis * x86-64-tdep.c: Include "regset.h". diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index 81d32a27874..165e2087307 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -796,8 +796,8 @@ x86_64_store_return_value (struct type *type, struct regcache *regcache, /* XXX: What about complex floating point types? */ else { - int low_size = DEPRECATED_REGISTER_RAW_SIZE (0); - int high_size = DEPRECATED_REGISTER_RAW_SIZE (1); + int low_size = register_size (current_gdbarch, X86_64_RAX_REGNUM); + int high_size = register_size (current_gdbarch, X86_64_RDX_REGNUM); if (len <= low_size) regcache_cooked_write_part (regcache, 0, 0, len, valbuf);