aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-10-05 22:13:24 +0000
committerMark Kettenis <kettenis@gnu.org>2003-10-05 22:13:24 +0000
commitae53de438ea06bbf1832c48737c458de593a9961 (patch)
treebd3964e2eded0af9fadad3ffd54bc35dd50878b6 /gdb/x86-64-tdep.c
parent2c261faeaa62d3a8622894c18742dd4cc4194480 (diff)
downloadgdb-ae53de438ea06bbf1832c48737c458de593a9961.zip
gdb-ae53de438ea06bbf1832c48737c458de593a9961.tar.gz
gdb-ae53de438ea06bbf1832c48737c458de593a9961.tar.bz2
* 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.
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 81d32a2..165e208 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);