diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-09-10 21:31:18 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-09-10 21:31:18 +0000 |
commit | 77d8f2b47ef858ba7534d08097decc6826a53e65 (patch) | |
tree | 854ec66a5cf474cb2895a4386cf3235170a88c27 /gdb/mips-tdep.c | |
parent | 2b68e2c5b9fcacc90385c8a750bddf5a7bd0bbe7 (diff) | |
download | gdb-77d8f2b47ef858ba7534d08097decc6826a53e65.zip gdb-77d8f2b47ef858ba7534d08097decc6826a53e65.tar.gz gdb-77d8f2b47ef858ba7534d08097decc6826a53e65.tar.bz2 |
2002-09-10 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_extract_struct_value_address): Make val a
LONGEST, and use signed register read (addresses are sign-
extended for mips).
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index eeffe24..1474393 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4907,8 +4907,9 @@ mips_extract_struct_value_address (struct regcache *regcache) /* FIXME: This will only work at random. The caller passes the struct_return address in V0, but it is not preserved. It may still be there, or this may be a random value. */ - CORE_ADDR val; - regcache_cooked_read_unsigned (regcache, V0_REGNUM, &val); + LONGEST val; + + regcache_cooked_read_signed (regcache, V0_REGNUM, &val); return val; } |