aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2007-01-03 20:54:32 +0000
committerMark Kettenis <kettenis@gnu.org>2007-01-03 20:54:32 +0000
commit1c63d08666fbdfac21d04a80234ed97588a26563 (patch)
treed815e12c02493bb1327f01969e0e48e2e0c807d4
parent1dbafe8eadbba5a16cbaddd84ce848721452b61b (diff)
downloadgdb-1c63d08666fbdfac21d04a80234ed97588a26563.zip
gdb-1c63d08666fbdfac21d04a80234ed97588a26563.tar.gz
gdb-1c63d08666fbdfac21d04a80234ed97588a26563.tar.bz2
* arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
(arm_linux_init_abi): Don't set deprecated_extract_return_value.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arm-linux-tdep.c28
2 files changed, 6 insertions, 27 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 299c61f..7a1ad4c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-03 Mark Kettenis <kettenis@gnu.org>
+
+ * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
+ (arm_linux_init_abi): Don't set deprecated_extract_return_value.
+
2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
* ada-lang.c (find_struct_field): Initialize *byte_offset_p.
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 52daada..6651f66 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -1,6 +1,6 @@
/* GNU/Linux on ARM target support.
- Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
Free Software Foundation, Inc.
This file is part of GDB.
@@ -74,29 +74,6 @@ static const char arm_linux_thumb_le_breakpoint[] = {0x01, 0xde};
#define ARM_LINUX_JB_ELEMENT_SIZE INT_REGISTER_SIZE
#define ARM_LINUX_JB_PC 21
-/* Extract from an array REGBUF containing the (raw) register state
- a function return value of type TYPE, and copy that, in virtual format,
- into VALBUF. */
-/* FIXME rearnsha/2002-02-23: This function shouldn't be necessary.
- The ARM generic one should be able to handle the model used by
- linux and the low-level formatting of the registers should be
- hidden behind the regcache abstraction. */
-static void
-arm_linux_extract_return_value (struct type *type,
- gdb_byte regbuf[],
- gdb_byte *valbuf)
-{
- /* ScottB: This needs to be looked at to handle the different
- floating point emulators on ARM GNU/Linux. Right now the code
- assumes that fetch inferior registers does the right thing for
- GDB. I suspect this won't handle NWFPE registers correctly, nor
- will the default ARM version (arm_extract_return_value()). */
-
- int regnum = ((TYPE_CODE_FLT == TYPE_CODE (type))
- ? ARM_F0_REGNUM : ARM_A1_REGNUM);
- memcpy (valbuf, &regbuf[DEPRECATED_REGISTER_BYTE (regnum)], TYPE_LENGTH (type));
-}
-
/*
Dynamic Linking on ARM GNU/Linux
--------------------------------
@@ -628,9 +605,6 @@ arm_linux_init_abi (struct gdbarch_info info,
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
- /* The following override shouldn't be needed. */
- set_gdbarch_deprecated_extract_return_value (gdbarch, arm_linux_extract_return_value);
-
/* Shared library handling. */
set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver);