aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-09 20:42:29 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-09 20:42:29 +0000
commit9730f241234216351ad23212d0a3f17cfc61a287 (patch)
tree2dab9e5d74de95feb2942debfe3bf1c09fa42604 /gdb/arch-utils.c
parent8a1bf479ce96c531ca840cb7bb8434cb413bf72e (diff)
downloadgdb-9730f241234216351ad23212d0a3f17cfc61a287.zip
gdb-9730f241234216351ad23212d0a3f17cfc61a287.tar.gz
gdb-9730f241234216351ad23212d0a3f17cfc61a287.tar.bz2
2004-06-09 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW) (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL) (DEPRECATED_REGISTER_CONVERTIBLE): Delete. * gdbarch.h, gdbarch.c: Re-generate. * infcmd.c (default_print_registers_info): Simplify. * findvar.c (value_of_register): Simplify. * mi/mi-main.c (get_register): Simplify. * arch-utils.c (legacy_convert_register_p): Always return 0. (legacy_register_to_value, legacy_value_to_register): Always call internal_error.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 9ea360e..0f7ea06 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -301,28 +301,21 @@ legacy_pc_in_sigtramp (CORE_ADDR pc, char *name)
int
legacy_convert_register_p (int regnum, struct type *type)
{
- return (DEPRECATED_REGISTER_CONVERTIBLE_P ()
- && DEPRECATED_REGISTER_CONVERTIBLE (regnum));
+ return 0;
}
void
legacy_register_to_value (struct frame_info *frame, int regnum,
struct type *type, void *to)
{
- char from[MAX_REGISTER_SIZE];
- get_frame_register (frame, regnum, from);
- DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum, type, from, to);
+ internal_error (__FILE__, __LINE__, "legacy_register_to_value called");
}
void
legacy_value_to_register (struct frame_info *frame, int regnum,
struct type *type, const void *tmp)
{
- char to[MAX_REGISTER_SIZE];
- char *from = alloca (TYPE_LENGTH (type));
- memcpy (from, from, TYPE_LENGTH (type));
- DEPRECATED_REGISTER_CONVERT_TO_RAW (type, regnum, from, to);
- put_frame_register (frame, regnum, to);
+ internal_error (__FILE__, __LINE__, "legacy_value_to_register called");
}
int