From a250b0f75e58053ee3e7428b8499baa9ddec3e88 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Sat, 9 Jul 2011 08:04:31 +0800 Subject: cleanup abort handler to armdebug interface --- Debugger/debug_stub.S | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Debugger/debug_stub.S') diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S index ccd411d..193705e 100644 --- a/Debugger/debug_stub.S +++ b/Debugger/debug_stub.S @@ -390,6 +390,17 @@ _dbg__flush_icache: /* nop */ bx lr +/* dbg__abort_exception_handler + * Handle Abort Exceptions + * On entry: + * r0: Abort Type Enum + * On exit: + * routine does not 'exit' in the normal sense + */ + .global dbg__abort_exception_handler +dbg__abort_exception_handler: + _dbg_set_bkpt_type r0 /* Set Breakpoint Type given value in R0 */ + b dbg__bkpt_waitCMD /* dbg__thumb_bkpt_handler * GDB handle_exception() routine (Thumb Mode) -- cgit v1.2.3