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-06 Mark Kettenis <kettenis@gnu.org>
+
+ * 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 <kettenis@gnu.org>
* x86-64-tdep.c: Include "regset.h".
/* 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);