diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-17 18:45:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-17 18:45:25 +0000 |
commit | 4c32e1c02993c2e9a807b96d4518d9645a601891 (patch) | |
tree | 83cc2eeee4e9348f4a350394049d2c24434a623d /gdb/mcore-tdep.c | |
parent | 0b21d3557f53e9761ca0dcfecbfb556efa800831 (diff) | |
download | gdb-4c32e1c02993c2e9a807b96d4518d9645a601891.tar.gz |
2004-01-17 Andrew Cagney <cagney@redhat.com>
* mcore-tdep.c: Update copyright.
(mcore_extract_struct_value_address): Delete function. Update
comments.
(mcore_gdbarch_init): Update.
* mn10300-tdep.c: Update copyright.
(mn10300_extract_struct_value_address): Delete function.
(mn10300_gdbarch_init): Update.
* v850-tdep.c: Update copyright.
(v850_extract_struct_value_address): Delete.
(v850_gdbarch_init): Update.
* ns32k-tdep.c: Update copyright.
(ns32k_extract_struct_value_address): Delete.
(ns32k_gdbarch_init): Update.
* hppa-tdep.c (hppa_extract_struct_value_address): Delete.
(hppa_gdbarch_init): Update.
* vax-tdep.c: Update copyright.
(vax_extract_struct_value_address): Delete.
(vax_gdbarch_init): Update.
Diffstat (limited to 'gdb/mcore-tdep.c')
-rw-r--r-- | gdb/mcore-tdep.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/gdb/mcore-tdep.c b/gdb/mcore-tdep.c index 5382f7ebc02..5e08e25a20c 100644 --- a/gdb/mcore-tdep.c +++ b/gdb/mcore-tdep.c @@ -1,5 +1,7 @@ /* Target-machine dependent code for Motorola MCore for GDB, the GNU debugger - Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + + Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software + Foundation, Inc. This file is part of GDB. @@ -917,16 +919,13 @@ mcore_push_return_address (CORE_ADDR pc, CORE_ADDR sp) argument. For gdb, this leaves us two routes, based on what - USE_STRUCT_CONVENTION (mcore_use_struct_convention) returns. - If this macro returns 1, gdb will call STORE_STRUCT_RETURN and - EXTRACT_STRUCT_VALUE_ADDRESS. - - If USE_STRUCT_CONVENTION retruns 0, then gdb uses STORE_RETURN_VALUE - and EXTRACT_RETURN_VALUE to store/fetch the functions return value. */ + USE_STRUCT_CONVENTION (mcore_use_struct_convention) returns. If + this macro returns 1, gdb will call STORE_STRUCT_RETURN to store + the return value. -/* Should we use EXTRACT_STRUCT_VALUE_ADDRESS instead of - EXTRACT_RETURN_VALUE? GCC_P is true if compiled with gcc - and TYPE is the type (which is known to be struct, union or array). */ + If USE_STRUCT_CONVENTION returns 0, then gdb uses + STORE_RETURN_VALUE and EXTRACT_RETURN_VALUE to store/fetch the + functions return value. */ static int mcore_use_struct_convention (int gcc_p, struct type *type) @@ -934,16 +933,6 @@ mcore_use_struct_convention (int gcc_p, struct type *type) return (TYPE_LENGTH (type) > 8); } -/* Where is the return value saved? For MCore, a pointer to - this buffer was passed as a hidden first argument, so - just return that address. */ - -static CORE_ADDR -mcore_extract_struct_value_address (char *regbuf) -{ - return extract_unsigned_integer (regbuf + DEPRECATED_REGISTER_BYTE (FIRST_ARGREG), DEPRECATED_REGISTER_SIZE); -} - /* Given a function which returns a value of type TYPE, extract the the function's return value and place the result into VALBUF. REGBUF is the register contents of the target. */ @@ -1085,8 +1074,6 @@ mcore_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_extract_return_value (gdbarch, mcore_extract_return_value); set_gdbarch_deprecated_store_struct_return (gdbarch, mcore_store_struct_return); - set_gdbarch_deprecated_extract_struct_value_address (gdbarch, - mcore_extract_struct_value_address); set_gdbarch_skip_prologue (gdbarch, mcore_skip_prologue); set_gdbarch_frame_args_skip (gdbarch, 0); set_gdbarch_deprecated_frame_args_address (gdbarch, mcore_frame_args_address); |