gdbstub-cfg.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * GDB Stub and exception/crash dumping configuration
8  *
9  * Unless otherwise noted, settings only take effect when application is built with ENABLE_GDB=1
10  *
11  ****/
12 
13 #pragma once
14 
22 #ifndef ENABLE_EXCEPTION_DUMP
23 #ifdef SMING_RELEASE
24 #define ENABLE_EXCEPTION_DUMP 0
25 #else
26 #define ENABLE_EXCEPTION_DUMP 1
27 #endif
28 #endif
29 
36 #ifndef ENABLE_CRASH_DUMP
37 #ifdef SMING_RELEASE
38 #define ENABLE_CRASH_DUMP 0
39 #else
40 #define ENABLE_CRASH_DUMP 1
41 #endif
42 #endif
43 
52 #ifndef GDBSTUB_ENABLE_DEBUG
53 #define GDBSTUB_ENABLE_DEBUG 0
54 #endif
55 
60 #ifndef GDBSTUB_GDB_PATCHED
61 #define GDBSTUB_GDB_PATCHED 1
62 #endif
63 
70 #ifndef GDBSTUB_USE_OWN_STACK
71 #define GDBSTUB_USE_OWN_STACK 0
72 #define GDBSTUB_STACK_SIZE 256 // In dwords
73 #endif
74 
78 #ifndef GDBSTUB_BREAK_ON_EXCEPTION
79 #define GDBSTUB_BREAK_ON_EXCEPTION 1
80 #endif
81 
85 #ifndef GDBSTUB_BREAK_ON_RESTART
86 #define GDBSTUB_BREAK_ON_RESTART 1
87 #endif
88 
104 #ifndef GDBSTUB_CTRLC_BREAK
105 #define GDBSTUB_CTRLC_BREAK 2
106 #endif
107 
126 #ifndef GDBSTUB_ENABLE_UART2
127 #define GDBSTUB_ENABLE_UART2 1
128 #endif
129 
134 #ifndef GDBSTUB_ENABLE_SYSCALL
135 #define GDBSTUB_ENABLE_SYSCALL 0
136 #endif
137 
142 #ifndef GDBSTUB_ENABLE_HOSTIO
143 #define GDBSTUB_ENABLE_HOSTIO 1
144 #endif
145 
150 #ifndef GDBSTUB_BREAK_ON_INIT
151 #define GDBSTUB_BREAK_ON_INIT 1
152 #endif
153 
157 // Read/write individual registers
158 #ifndef GDBSTUB_CMDENABLE_P
159 #define GDBSTUB_CMDENABLE_P 1
160 #endif
161 // Write binary-encoded data
162 #ifndef GDBSTUB_CMDENABLE_X
163 #define GDBSTUB_CMDENABLE_X 1
164 #endif
165 
170 #ifndef GDBSTUB_UART_READ_TIMEOUT
171 #define GDBSTUB_UART_READ_TIMEOUT 0
172 #endif
173 
179 #ifndef GDBSTUB_FORCE_IRAM
180 #define GDBSTUB_FORCE_IRAM 0
181 #endif