aboutsummaryrefslogtreecommitdiff
path: root/gdb/score-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-01-10 20:15:03 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-04-23 22:50:28 +0100
commita40dde9db56ffcea8c2b99e8c4e292ce64f64f9c (patch)
treea05120191924926259099a87d9e064f6f86fcfba /gdb/score-tdep.c
parent47c47d6907bc44a599baff948d2809616c74c44e (diff)
downloadgdb-a40dde9db56ffcea8c2b99e8c4e292ce64f64f9c.zip
gdb-a40dde9db56ffcea8c2b99e8c4e292ce64f64f9c.tar.gz
gdb-a40dde9db56ffcea8c2b99e8c4e292ce64f64f9c.tar.bz2
gdb/score: Use default gdbarch methods where possible
Make use of the default gdbarch methods for gdbarch_dummy_id, gdbarch_unwind_pc, and gdbarch_unwind_sp where possible. I have not tested this change but, by inspecting the code, I believe the default methods are equivalent to the code being deleted. gdb/ChangeLog: * score-tdep.c (score_unwind_sp): Delete. (score_unwind_pc): Delete. (score_dummy_id): Delete. (score_gdbarch_init): Don't register deleted functions with gdbarch.
Diffstat (limited to 'gdb/score-tdep.c')
-rw-r--r--gdb/score-tdep.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 02f4ed4..19306d3 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -64,18 +64,6 @@ score_register_type (struct gdbarch *gdbarch, int regnum)
return builtin_type (gdbarch)->builtin_uint32;
}
-static CORE_ADDR
-score_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame)
-{
- return frame_unwind_register_unsigned (next_frame, SCORE_SP_REGNUM);
-}
-
-static CORE_ADDR
-score_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
-{
- return frame_unwind_register_unsigned (next_frame, SCORE_PC_REGNUM);
-}
-
static const char *
score7_register_name (struct gdbarch *gdbarch, int regnum)
{
@@ -478,14 +466,6 @@ score_return_value (struct gdbarch *gdbarch, struct value *function,
}
}
-static struct frame_id
-score_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
-{
- return frame_id_build (get_frame_register_unsigned (this_frame,
- SCORE_SP_REGNUM),
- get_frame_pc (this_frame));
-}
-
static int
score_type_needs_double_align (struct type *type)
{
@@ -1480,8 +1460,6 @@ score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_register_type (gdbarch, score_register_type);
set_gdbarch_frame_align (gdbarch, score_frame_align);
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
- set_gdbarch_unwind_sp (gdbarch, score_unwind_sp);
- set_gdbarch_unwind_pc (gdbarch, score_unwind_pc);
switch (target_mach)
{
@@ -1519,7 +1497,6 @@ score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Dummy frame hooks. */
set_gdbarch_return_value (gdbarch, score_return_value);
set_gdbarch_call_dummy_location (gdbarch, AT_ENTRY_POINT);
- set_gdbarch_dummy_id (gdbarch, score_dummy_id);
set_gdbarch_push_dummy_call (gdbarch, score_push_dummy_call);
/* Normal frame hooks. */