summaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-07-09 08:04:31 +0800
committerTat-Chee Wan (USM)2011-07-09 08:04:31 +0800
commita250b0f75e58053ee3e7428b8499baa9ddec3e88 (patch)
tree9d736c1473a2b081c5746a68fe5cb640d4029bfd /Debugger/debug_stub.S
parent7d70ae2da93e8fe92e0eb471ed4278a59cab0cf8 (diff)
cleanup abort handler to armdebug interface
Diffstat (limited to 'Debugger/debug_stub.S')
-rw-r--r--Debugger/debug_stub.S11
1 files changed, 11 insertions, 0 deletions
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)