From 4814854ff7149f3b9dae2d5f1bf49d2bdeeaed6d Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Mon, 20 Jun 2011 09:35:43 +0800 Subject: declared variables and functions as globals for inter-module access --- Debugger/debug_stub.S | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Debugger/debug_stub.S') 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: -- cgit v1.2.3