From 47ce28faf2797edf0c3bc7b10f7ae453d1f6a152 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Tue, 12 Jul 2011 18:10:42 +0800 Subject: conditionally exclude dead code from breakpoint handling logic --- Debugger/debug_stub.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S index 3848cd4..ed45dd4 100644 --- a/Debugger/debug_stub.S +++ b/Debugger/debug_stub.S @@ -481,13 +481,15 @@ _dbg__switch2undefmode: ldr lr, =resume_execution mov pc, lr /* Exit via UNDEF mode */ +#if 0 _process_manual_breakpoint_thumb: mov r0, #DBG_MANUAL_BKPT_THUMB /* Setup Breakpoint type before executing common routine */ b _restore_normal_breakpoints _process_normal_breakpoint_thumb: mov r0, #DBG_NORMAL_BKPT_THUMB /* Setup Breakpoint type before executing common routine */ - b _restore_normal_breakpoints +/* b _restore_normal_breakpoints */ +#endif _restore_normal_breakpoints: _dbg_set_bkpt_type r0 /* Set Breakpoint Type given value in R0 */ -- cgit v1.2.3