aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-20 09:35:43 +0800
committerTat-Chee Wan (USM)2011-06-20 09:35:43 +0800
commit4814854ff7149f3b9dae2d5f1bf49d2bdeeaed6d (patch)
treec7b80bcda0ad46a9c5c1a9734647c64e3d89b036 /Debugger/debug_stub.S
parent5cb8fa6648f7f21d1e99535c8a3d06c789f0f221 (diff)
declared variables and functions as globals for inter-module access
Diffstat (limited to 'Debugger/debug_stub.S')
-rw-r--r--Debugger/debug_stub.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S
index f472a78..b987d7c 100644
--- a/Debugger/debug_stub.S
+++ b/Debugger/debug_stub.S
@@ -144,6 +144,21 @@
#include "debug_internals.h"
#include "debug_macros.h"
+ /* Hexutils function references */
+ .extern hex2char
+ .extern char2hex
+ .extern byte2ascii
+ .extern halfword2ascii_be
+ .extern halfword2ascii_le
+ .extern word2ascii_be
+ .extern word2ascii_le
+ .extern ascii2hex_varlen_be
+ .extern ascii2byte
+ .extern ascii2halfword_be
+ .extern ascii2halfword_le
+ .extern ascii2word_be
+ .extern ascii2word_le
+
/* Macro definitions */
/* _check_msgseparator
@@ -198,6 +213,12 @@ debug_InMsgBuf:
debug_OutMsgBuf:
.space MSGBUF_SIZE,0
+ /* Make Debugger State accessible from other modules */
+ .global debug_state
+ .global debug_mode
+ .global debug_bkpt_type
+ .global debug_curr_breakpoint
+
debug_state:
.byte 0x0 /* dbg_state_t variable */
debug_mode: