From 7e02be836fb1310cdd3fc786ae4a58e01e4bf457 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 30 Aug 2022 19:38:28 +0900 Subject: [PATCH] nuttx: Add CONFIG_INTERPRETERS_WAMR_DEBUG_INTERP (#1426) the corresponding nuttx PR: https://github.com/apache/incubator-nuttx-apps/pull/1299 --- product-mini/platforms/nuttx/wamr.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/product-mini/platforms/nuttx/wamr.mk b/product-mini/platforms/nuttx/wamr.mk index 28ca1f60..d694cbdc 100644 --- a/product-mini/platforms/nuttx/wamr.mk +++ b/product-mini/platforms/nuttx/wamr.mk @@ -147,6 +147,19 @@ CSRCS += wasm_loader.c endif endif +ifeq ($(CONFIG_INTERPRETERS_WAMR_DEBUG_INTERP),y) +# Note: INTERPRETERS_WAMR_CLASSIC/INTERPRETERS_WAMR_THREAD_MGR +# dependencies are already handled in NuttX apps Kconfig +CFLAGS += -DWASM_ENABLE_DEBUG_INTERP=1 +CFLAGS += -I$(IWASM_ROOT)/libraries/debug-engine +CSRCS += debug_engine.c +CSRCS += gdbserver.c +CSRCS += handler.c +CSRCS += packets.c +CSRCS += utils.c +VPATH += $(IWASM_ROOT)/libraries/debug-engine +endif + ifeq ($(CONFIG_INTERPRETERS_WAMR_STACK_GUARD_SIZE),) CFLAGS += -DWASM_STACK_GUARD_SIZE=0 else