From ab854e54510727ba4db85875159f796e652e0b54 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 8 Aug 2012 05:47:57 +0000 Subject: [PATCH] gdb/ * tic6x-tdep.c (tic6x_register_to_value): Remove. (tic6x_value_to_register): Likewise. (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value and set_gdbarch_value_to_register. --- gdb/ChangeLog | 7 +++++++ gdb/tic6x-tdep.c | 24 ------------------------ 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55ed8dda1dd..0fcf9692837 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-08-08 Yao Qi + + * tic6x-tdep.c (tic6x_register_to_value): Remove. + (tic6x_value_to_register): Likewise. + (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value + and set_gdbarch_value_to_register. + 2012-08-07 Jan Kratochvil Jean-Marc Saffroy diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c index 1fefcf34322..a8d518d3ec8 100644 --- a/gdb/tic6x-tdep.c +++ b/gdb/tic6x-tdep.c @@ -715,27 +715,6 @@ tic6x_frame_align (struct gdbarch *gdbarch, CORE_ADDR addr) return align_down (addr, 8); } -/* This is the implementation of gdbarch method register_to_value. */ - -static int -tic6x_register_to_value (struct frame_info *frame, int regnum, - struct type *type, gdb_byte * to, - int *optimizedp, int *unavailablep) -{ - get_frame_register (frame, regnum, (char *) to); - *optimizedp = *unavailablep = 0; - return 1; -} - -/* This is the implementation of gdbarch method value_to_register. */ - -static void -tic6x_value_to_register (struct frame_info *frame, int regnum, - struct type *type, const gdb_byte *from) -{ - put_frame_register (frame, regnum, from); -} - /* Given a return value in REGCACHE with a type VALTYPE, extract and copy its value into VALBUF. */ @@ -1341,9 +1320,6 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Call dummy code. */ set_gdbarch_frame_align (gdbarch, tic6x_frame_align); - set_gdbarch_register_to_value (gdbarch, tic6x_register_to_value); - set_gdbarch_value_to_register (gdbarch, tic6x_value_to_register); - set_gdbarch_return_value (gdbarch, tic6x_return_value); set_gdbarch_dummy_id (gdbarch, tic6x_dummy_id); -- 2.30.2