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).
This commit is contained in:
parent
2b68e2c5b9
commit
77d8f2b47e
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
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).
|
||||
|
||||
2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
|
||||
|
||||
* event-loop.c (gdb_do_one_event): Make public.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue