From 720aa337c19691c3dc3edbf816ca8141516b8ac2 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Wed, 20 Jul 2011 10:05:09 +0800 Subject: implement query current thread support --- Debugger/debug_macros.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Debugger/debug_macros.h') diff --git a/Debugger/debug_macros.h b/Debugger/debug_macros.h index fcf6ca6..b25c7b4 100644 --- a/Debugger/debug_macros.h +++ b/Debugger/debug_macros.h @@ -265,6 +265,20 @@ __dbg_outputSigMsg .endm +/* _dbg_outputMsgCurrTID + * Return Message with Default Thread ID ('+$QC0') + * On exit: + * R0: Pointer to Output Buffer ASCIIZ location + * R1: destroyed + * R2: destroyed + */ + .macro _dbg_outputMsgCurrTID + ldr r0, =debug_OutMsgBuf + ldr r1, =debug_ThreadIDResponse /* ASCIIZ terminated */ + _dbg_stpcpy r0, r1, r2 + .endm + + /* _regenum2index * Convert register enum to debugger stack index * -- cgit v1.2.3