aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2007-01-13 23:24:43 +0000
committerMark Kettenis <kettenis@gnu.org>2007-01-13 23:24:43 +0000
commit5e66aab290c982e10723e2c38303f1a6d2ea0a35 (patch)
treefaadd8b8b3a0ceba6296a5f1d6a1c6bee9e41f5d /gdb/arch-utils.c
parent08f9ce9edc64c89c7d40439472d618922f8578c0 (diff)
downloadgdb-5e66aab290c982e10723e2c38303f1a6d2ea0a35.zip
gdb-5e66aab290c982e10723e2c38303f1a6d2ea0a35.tar.gz
gdb-5e66aab290c982e10723e2c38303f1a6d2ea0a35.tar.bz2
* gdbarch.sh (deprecated_extract_return_value)
(deprecated_store_return_value): Remove. (extract_return_value, store_return_value): Remove default values. * gdbarch.c, gdbarch.h: Regenerate. * arch-utils.c, arch-utils.h (legacy_extract_return_value) (legacy_store_return_value): Remove. * regcache.c, regcache.h (deprecated_grub_regcache_for_registers): Remove.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 3635955..bd8abea 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -38,29 +38,6 @@
#include "floatformat.h"
-/* Implementation of extract return value that grubs around in the
- register cache. */
-void
-legacy_extract_return_value (struct type *type, struct regcache *regcache,
- gdb_byte *valbuf)
-{
- gdb_byte *registers = deprecated_grub_regcache_for_registers (regcache);
- gdb_byte *buf = valbuf;
- DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, buf); /* OK */
-}
-
-/* Implementation of store return value that grubs the register cache.
- Takes a local copy of the buffer to avoid const problems. */
-void
-legacy_store_return_value (struct type *type, struct regcache *regcache,
- const gdb_byte *buf)
-{
- gdb_byte *b = alloca (TYPE_LENGTH (type));
- gdb_assert (regcache == current_regcache);
- memcpy (b, buf, TYPE_LENGTH (type));
- DEPRECATED_STORE_RETURN_VALUE (type, b);
-}
-
int
always_use_struct_convention (int gcc_p, struct type *value_type)
{
@@ -312,17 +289,6 @@ generic_convert_register_p (int regnum, struct type *type)
int
default_stabs_argument_has_addr (struct gdbarch *gdbarch, struct type *type)
{
- if (DEPRECATED_REG_STRUCT_HAS_ADDR_P ()
- && DEPRECATED_REG_STRUCT_HAS_ADDR (processing_gcc_compilation, type))
- {
- CHECK_TYPEDEF (type);
-
- return (TYPE_CODE (type) == TYPE_CODE_STRUCT
- || TYPE_CODE (type) == TYPE_CODE_UNION
- || TYPE_CODE (type) == TYPE_CODE_SET
- || TYPE_CODE (type) == TYPE_CODE_BITSTRING);
- }
-
return 0;
}