summaryrefslogtreecommitdiff
path: root/Debugger/debug_stack.ld
diff options
context:
space:
mode:
authorTC Wan2010-12-01 13:40:54 +0800
committerTC Wan2010-12-01 13:40:54 +0800
commit3d5bdf9fba6442332030e68df2aa7880a894842d (patch)
tree24195fd8a83cd0b7f0acd31640cacef716936ebf /Debugger/debug_stack.ld
parent238f1f715c01d052a9dc19db079c1f97bcd3b53c (diff)
restructure repository
Diffstat (limited to 'Debugger/debug_stack.ld')
-rw-r--r--Debugger/debug_stack.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/Debugger/debug_stack.ld b/Debugger/debug_stack.ld
new file mode 100644
index 0000000..df27512
--- /dev/null
+++ b/Debugger/debug_stack.ld
@@ -0,0 +1,15 @@
+/* The following linker definitions should be placed in the stack section */
+
+ /* debugger state */
+ __debugger_stack_bottom__ = . ;
+ . += 0x48; /* 16 user mode registers + SPSR + BKPT Instr Addr */
+ __debugger_stack__ = .;
+ __debugger_stack_top__ = . ;
+
+ /* breakpoints */
+ __breakpoints_start__ = . ;
+ . += 0x40; /* Single Stepping Breakpoint + 7 Breakpoints */
+ __breakpoints_end__ = . ;
+
+/* Symbols */
+ __breakpoints_num__ = (__breakpoints_end__ - __breakpoints_start__) / 8;