aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Debugger/debug_comm.S16
-rw-r--r--Debugger/debug_stub.S21
2 files changed, 37 insertions, 0 deletions
diff --git a/Debugger/debug_comm.S b/Debugger/debug_comm.S
index 1789cb1..570fedc 100644
--- a/Debugger/debug_comm.S
+++ b/Debugger/debug_comm.S
@@ -22,6 +22,22 @@
#include "debug_internals.h"
#include "debug_comm.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
+
+
.bss
.align 4
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: