Skip to content

Commit

Permalink
[build] restore GDB_PATH for debug purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
librae8226 authored and junjiec committed Mar 25, 2018
1 parent 7279613 commit 8f54dc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ main_app: $(OUTPUT_DIR)/config.mk $(YOS_SDK_PRE_APP_BUILDS) $(MAKEFILES_PATH)/ao
ifeq ($(SUB_BUILD),)
.gdbinit: $(OUTPUT_DIR)/config.mk $(MAKEFILES_PATH)/aos_host_cmd.mk main_app
$(QUIET)$(ECHO) Making $@
$(QUIET)$(ECHO) set remotetimeout 20 > $@
ifeq ($(HOST_OS), Win32)
$(QUIET)$(ECHO) #GDB_PATH=$(GDB_COMMAND) > $@
else
$(QUIET)$(ECHO) '#GDB_PATH=$(GDB_COMMAND)' > $@
endif
$(QUIET)$(ECHO) set remotetimeout 20 >> $@
$(QUIET)$(ECHO) $(GDB_KILL_OPENOCD) >> $@
$(QUIET)$(ECHO) $(GDBINIT_STRING) >> $@

Expand Down

0 comments on commit 8f54dc2

Please sign in to comment.