diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-07-10 14:43:37 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-07-10 14:43:37 +0000 |
commit | 8db62801bd2efe1b9e6493b1a4ecadf605791b99 (patch) | |
tree | cd439f9797e180c03a815a5e9c60d72ebef7c629 /gdb/config | |
parent | 32178cabe9d82d333ad4274fadb37418da4fb8d1 (diff) | |
download | gdb-8db62801bd2efe1b9e6493b1a4ecadf605791b99.zip gdb-8db62801bd2efe1b9e6493b1a4ecadf605791b99.tar.gz gdb-8db62801bd2efe1b9e6493b1a4ecadf605791b99.tar.bz2 |
2000-07-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/sh/tm-sh.h (STORE_RETURN_VALUE): Redefine as
sh_store_return_value().
* sh-tdep.c (sh_store_return_value): New function. Store the
value returned by a function into the appropriate register.
2000-07-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_skip_prologue): Before looking at the actual
instructions, try to see if the symbol table can be of help, by
calling after_prologue(). If this doesn't work, call
skip_prologue_hard_way().
(skip_prologue_hard_way): Renamed from sh_skip_prologue. Add some
more instruction pattern matching for pushing of arguments, and
manipulation of r14.
(after_prologue): New function. Use symbol table info to determine
the end of the prologue, if possible.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/sh/tm-sh.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index ca6d9e5..bb03f53 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -181,12 +181,11 @@ extern void sh_extract_return_value (struct type *, void *, void *); sh_extract_return_value (TYPE, REGBUF, VALBUF) /* Write into appropriate registers a function return value - of type TYPE, given in virtual format. - - Things always get returned in R0/R1 */ + of type TYPE, given in virtual format. */ +extern void sh_store_return_value (struct type *, void *); #define STORE_RETURN_VALUE(TYPE,VALBUF) \ - write_register_bytes (REGISTER_BYTE(0), VALBUF, TYPE_LENGTH (TYPE)) + sh_store_return_value (TYPE, VALBUF) /* Extract from an array REGBUF containing the (raw) register state the address in which a function should return its structure value, |