This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Cleanup dead codes in gdb/score-tdep.c
- From: don dot lee at sunplusct dot com
- To: gdb-patches at sourceware dot org
- Cc: brobecker at adacore dot com, muller at ics dot u-strasbg dot fr
- Date: Mon, 19 Oct 2009 17:34:25 +0800
- Subject: [commit] Cleanup dead codes in gdb/score-tdep.c
Hi all,
This patch delete all the dead codes in gdb/score-tdep.c.
don
2009-10-19 Don Lee <don.lee@sunplusct.com>
* score-tdep.c: Delete dead codes.
Index: gdb/score-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/score-tdep.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -c -p -r1.22 -r1.23
*** gdb/score-tdep.c 27 Sep 2009 08:45:11 -0000 1.22
--- gdb/score-tdep.c 19 Oct 2009 08:44:28 -0000 1.23
*************** struct score_frame_cache
*** 56,113 ****
static int target_mach = bfd_mach_score7;
- #if 0
- int
- score_target_can_use_watch (int type, int cnt, int othertype)
- {
- if (strcmp (current_target.to_shortname, "sim") == 0)
- return soc_gh_can_use_watch (type, cnt);
- return (*current_target.to_can_use_hw_breakpoint) (type, cnt,
othertype);
- }
-
- int
- score_stopped_by_watch (void)
- {
- if (strcmp (current_target.to_shortname, "sim") == 0)
- return soc_gh_stopped_by_watch ();
- return (*current_target.to_stopped_by_watchpoint) ();
- }
-
- int
- score_target_insert_watchpoint (CORE_ADDR addr, int len, int type)
- {
- if (strcmp (current_target.to_shortname, "sim") == 0)
- return soc_gh_add_watch (addr, len, type);
- return (*current_target.to_insert_watchpoint) (addr, len, type);
- }
-
- int
- score_target_remove_watchpoint (CORE_ADDR addr, int len, int type)
- {
- if (strcmp (current_target.to_shortname, "sim") == 0)
- return soc_gh_del_watch (addr, len, type);
- return (*current_target.to_remove_watchpoint) (addr, len, type);
- }
-
- int
- score_target_insert_hw_breakpoint (struct gdbarch *gdbarch,
- struct bp_target_info * bp_tgt)
- {
- if (strcmp (current_target.to_shortname, "sim") == 0)
- return soc_gh_add_hardbp (bp_tgt->placed_address);
- return (*current_target.to_insert_hw_breakpoint) (gdbarch, bp_tgt);
- }
-
- int
- score_target_remove_hw_breakpoint (struct gdbarch *gdbarch,
- struct bp_target_info * bp_tgt)
- {
- if (strcmp (current_target.to_shortname, "sim") == 0)
- return soc_gh_del_hardbp (bp_tgt->placed_address);
- return (*current_target.to_remove_hw_breakpoint) (gdbarch, bp_tgt);
- }
- #endif
-
static struct type *
score_register_type (struct gdbarch *gdbarch, int regnum)
{
--- 56,61 ----