diff options
author | Don Lee <don.lee@sunplusct.com> | 2009-09-27 08:45:12 +0000 |
---|---|---|
committer | Don Lee <don.lee@sunplusct.com> | 2009-09-27 08:45:12 +0000 |
commit | 5b6912fbdbc8f9640728799661010fc080fe2e53 (patch) | |
tree | 2d5e14a5d78734eff32616a0e33a37c59c2fef88 | |
parent | a6a22b839b6c48b1328b0471e12fc164ce07a446 (diff) | |
download | gdb-5b6912fbdbc8f9640728799661010fc080fe2e53.zip gdb-5b6912fbdbc8f9640728799661010fc080fe2e53.tar.gz gdb-5b6912fbdbc8f9640728799661010fc080fe2e53.tar.bz2 |
* score-tdep.c: Comment out some simulator dependent codes.
* score-tdep.h: Delete some simulator dependent macro definitions.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/score-tdep.c | 2 | ||||
-rw-r--r-- | gdb/score-tdep.h | 64 |
3 files changed, 6 insertions, 65 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0ce3fe8..ca1748d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-09-27 Don Lee <don.lee@sunplusct.com> + + * score-tdep.c: Comment out some simulator dependent codes. + * score-tdep.h: Delete some simulator dependent macro definitions. + 2009-09-27 Hui Zhu <teawater@gmail.com> * record.c (record_open): Change "query" to "error". diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c index 47da1c8..ccbcc3a 100644 --- a/gdb/score-tdep.c +++ b/gdb/score-tdep.c @@ -56,7 +56,7 @@ struct score_frame_cache static int target_mach = bfd_mach_score7; -#if WITH_SIM +#if 0 int score_target_can_use_watch (int type, int cnt, int othertype) { diff --git a/gdb/score-tdep.h b/gdb/score-tdep.h index 792f277..2434722 100644 --- a/gdb/score-tdep.h +++ b/gdb/score-tdep.h @@ -85,68 +85,4 @@ struct pt_regs { typedef struct pt_regs elf_gregset_t; -#ifdef WITH_SIM - -#include <breakpoint.h> - -int soc_gh_can_use_watch(int type, int cnt); -int soc_gh_add_watch(unsigned int addr, int len, int type); -int soc_gh_del_watch(unsigned int addr, int len, int type); -int soc_gh_stopped_by_watch(void); -int soc_gh_add_hardbp(unsigned int addr); -int soc_gh_del_hardbp(unsigned int addr); - -int score_target_can_use_watch(int type, int cnt, int ot); -int score_stopped_by_watch(void); -int score_target_insert_watchpoint (CORE_ADDR addr, int len, int type); -int score_target_remove_watchpoint (CORE_ADDR addr, int len, int type); -int score_target_insert_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info * bp_tgt); -int score_target_remove_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info * bp_tgt); - -#define TARGET_HAS_HARDWARE_WATCHPOINTS - -#ifdef TARGET_CAN_USE_HARDWARE_WATCHPOINT -#undef TARGET_CAN_USE_HARDWARE_WATCHPOINT - -#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ - score_target_can_use_watch(type, cnt, ot) -#endif - -#ifdef STOPPED_BY_WATCHPOINT -#undef STOPPED_BY_WATCHPOINT - -#define STOPPED_BY_WATCHPOINT(w) \ - score_stopped_by_watch() -#endif - -#ifdef target_insert_watchpoint -#undef target_insert_watchpoint - -#define target_insert_watchpoint(addr, len, type) \ - score_target_insert_watchpoint (addr, len, type) -#endif - -#ifdef target_remove_watchpoint -#undef target_remove_watchpoint - -#define target_remove_watchpoint(addr, len, type) \ - score_target_remove_watchpoint (addr, len, type) -#endif - -#ifdef target_insert_hw_breakpoint -#undef target_insert_hw_breakpoint - -#define target_insert_hw_breakpoint(gdbarch, bp_tgt) \ - score_target_insert_hw_breakpoint (gdbarch, bp_tgt) -#endif - -#ifdef target_remove_hw_breakpoint -#undef target_remove_hw_breakpoint - -#define target_remove_hw_breakpoint(gdbarch, bp_tgt) \ - score_target_remove_hw_breakpoint (gdbarch, bp_tgt) -#endif - -#endif /* WITH_SIM */ - #endif /* SCORE_TDEP_H */ |