Merge pull request #1385 from MaBecker/wificonf

capsulate gdb with ifdef DEBUG (fix #1378)
This commit is contained in:
Gordon Williams 2018-04-27 09:00:34 +01:00 committed by GitHub
commit 08dabc3204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -96,10 +96,13 @@ SOURCES += targets/esp8266/uart.c \
targets/esp8266/jshardware.c \
targets/esp8266/i2c_master.c \
targets/esp8266/esp8266_board_utils.c \
targets/esp8266/gdbstub.c \
targets/esp8266/gdbstub-entry.S \
libs/network/esp8266/network_esp8266.c
ifdef DEBUG
SOURCES += targets/esp8266/gdbstub.c \
targets/esp8266/gdbstub-entry.S
endif
# The tool used for building the firmware and flashing
ESPTOOL ?= $(ESP8266_SDK_ROOT)/esptool/esptool.py

View File

@ -241,8 +241,10 @@ static void initDone() {
os_printf("> initDone\n");
otaInit(88);
extern void gdbstub_init();
gdbstub_init();
#ifdef DEBUG
extern void gdbstub_init();
gdbstub_init();
#endif
// Discard any junk data in the input as this is a boot.
//uart_rx_discard();