debug interface: get rid of unused pre_debug fn
Removing unused code makes it much less mysterius. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>__archive__
parent
a5e396b964
commit
acff2521fb
|
@ -1391,9 +1391,6 @@ int arm7_9_debug_entry(target_t *target)
|
|||
LOG_DEBUG("-");
|
||||
#endif
|
||||
|
||||
if (arm7_9->pre_debug_entry)
|
||||
arm7_9->pre_debug_entry(target);
|
||||
|
||||
/* program EmbeddedICE Debug Control Register to assert DBGACK and INTDIS
|
||||
* ensure that DBGRQ is cleared
|
||||
*/
|
||||
|
|
|
@ -102,7 +102,6 @@ typedef struct arm7_9_common_s
|
|||
|
||||
void (*set_special_dbgrq)(target_t *target); /**< Function for setting DBGRQ if the normal way won't work */
|
||||
|
||||
void (*pre_debug_entry)(target_t *target); /**< Callback function called before entering debug mode */
|
||||
void (*post_debug_entry)(target_t *target); /**< Callback function called after entering debug mode */
|
||||
|
||||
void (*pre_restore_context)(target_t *target); /**< Callback function called before restoring the processor context */
|
||||
|
|
|
@ -801,7 +801,6 @@ int arm7tdmi_init_arch_info(target_t *target, arm7tdmi_common_t *arm7tdmi, jtag_
|
|||
arm7_9->enable_single_step = arm7_9_enable_eice_step;
|
||||
arm7_9->disable_single_step = arm7_9_disable_eice_step;
|
||||
|
||||
arm7_9->pre_debug_entry = NULL;
|
||||
arm7_9->post_debug_entry = NULL;
|
||||
|
||||
arm7_9->pre_restore_context = NULL;
|
||||
|
|
|
@ -902,7 +902,6 @@ int arm9tdmi_init_arch_info(target_t *target, arm9tdmi_common_t *arm9tdmi, jtag_
|
|||
arm7_9->enable_single_step = arm9tdmi_enable_single_step;
|
||||
arm7_9->disable_single_step = arm9tdmi_disable_single_step;
|
||||
|
||||
arm7_9->pre_debug_entry = NULL;
|
||||
arm7_9->post_debug_entry = NULL;
|
||||
|
||||
arm7_9->pre_restore_context = NULL;
|
||||
|
|
|
@ -120,7 +120,6 @@ typedef struct armv7a_common_s
|
|||
uint32_t CRn, uint32_t CRm, uint32_t value);
|
||||
|
||||
int (*examine_debug_reason)(target_t *target);
|
||||
void (*pre_debug_entry)(target_t *target);
|
||||
void (*post_debug_entry)(target_t *target);
|
||||
|
||||
void (*pre_restore_context)(target_t *target);
|
||||
|
|
|
@ -108,7 +108,6 @@ typedef struct armv7m_common_s
|
|||
int (*write_core_reg)(struct target_s *target, int num);
|
||||
|
||||
int (*examine_debug_reason)(target_t *target);
|
||||
void (*pre_debug_entry)(target_t *target);
|
||||
void (*post_debug_entry)(target_t *target);
|
||||
|
||||
void (*pre_restore_context)(target_t *target);
|
||||
|
|
|
@ -637,9 +637,6 @@ int cortex_a8_debug_entry(target_t *target)
|
|||
cortex_a8_common_t *cortex_a8 = armv7a->arch_info;
|
||||
swjdp_common_t *swjdp = &armv7a->swjdp_info;
|
||||
|
||||
if (armv7a->pre_debug_entry)
|
||||
armv7a->pre_debug_entry(target);
|
||||
|
||||
LOG_DEBUG("dscr = 0x%08" PRIx32, cortex_a8->cpudbg_dscr);
|
||||
|
||||
/* Enable the ITR execution once we are in debug mode */
|
||||
|
@ -1586,7 +1583,6 @@ LOG_DEBUG(" ");
|
|||
/* register arch-specific functions */
|
||||
armv7a->examine_debug_reason = NULL;
|
||||
|
||||
armv7a->pre_debug_entry = NULL;
|
||||
armv7a->post_debug_entry = cortex_a8_post_debug_entry;
|
||||
|
||||
armv7a->pre_restore_context = NULL;
|
||||
|
|
|
@ -322,8 +322,6 @@ static int cortex_m3_debug_entry(target_t *target)
|
|||
swjdp_common_t *swjdp = &armv7m->swjdp_info;
|
||||
|
||||
LOG_DEBUG(" ");
|
||||
if (armv7m->pre_debug_entry)
|
||||
armv7m->pre_debug_entry(target);
|
||||
|
||||
cortex_m3_clear_halt(target);
|
||||
mem_ap_read_atomic_u32(swjdp, DCB_DHCSR, &cortex_m3->dcb_dhcsr);
|
||||
|
@ -1610,7 +1608,6 @@ static int cortex_m3_init_arch_info(target_t *target,
|
|||
/* register arch-specific functions */
|
||||
armv7m->examine_debug_reason = cortex_m3_examine_debug_reason;
|
||||
|
||||
armv7m->pre_debug_entry = NULL;
|
||||
armv7m->post_debug_entry = NULL;
|
||||
|
||||
armv7m->pre_restore_context = NULL;
|
||||
|
|
|
@ -346,7 +346,6 @@ int fa526_init_arch_info_2(target_t *target, arm9tdmi_common_t *arm9tdmi, jtag_t
|
|||
arm7_9->enable_single_step = arm9tdmi_enable_single_step;
|
||||
arm7_9->disable_single_step = arm9tdmi_disable_single_step;
|
||||
|
||||
arm7_9->pre_debug_entry = NULL;
|
||||
arm7_9->post_debug_entry = NULL;
|
||||
|
||||
arm7_9->pre_restore_context = NULL;
|
||||
|
|
Loading…
Reference in New Issue