Skip to content

Commit

Permalink
system: Rename debug to debugpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Huang Qi <[email protected]>
  • Loading branch information
no1wudi authored and xiaoxiang781216 committed Sep 8, 2024
1 parent c7c7653 commit 2f5dc9c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions system/debug/CMakeLists.txt → system/debugpoint/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ##############################################################################
# apps/system/debug/CMakeLists.txt
# apps/system/debugpoint/CMakeLists.txt
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
Expand All @@ -18,14 +18,14 @@
#
# ##############################################################################

if(CONFIG_SYSTEM_DEBUG)
if(CONFIG_SYSTEM_DEBUGPOINT)
nuttx_add_application(
NAME
${CONFIG_SYSTEM_DEBUG_PROGNAME}
${CONFIG_SYSTEM_DEBUGPOINT_PROGNAME}
SRCS
debug.c
STACKSIZE
${CONFIG_SYSTEM_DEBUG_STACKSIZE}
${CONFIG_SYSTEM_DEBUGPOINT_STACKSIZE}
PRIORITY
${CONFIG_SYSTEM_DEBUG_PRIORITY})
${CONFIG_SYSTEM_DEBUGPOINT_PRIORITY})
endif()
14 changes: 7 additions & 7 deletions system/debug/Kconfig → system/debugpoint/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#

config SYSTEM_DEBUG
config SYSTEM_DEBUGPOINT
tristate "Debugpoint utility"
default n
depends on ARCH_HAVE_DEBUG
depends on LIB_GDBSTUB
---help---
Enable the DEBUG test program. It is a simple
Enable the DEBUGPOINT test program. It is a simple
utility for testing the debug point support and
add debug points to the system by command line.

if SYSTEM_DEBUG
if SYSTEM_DEBUGPOINT

config SYSTEM_DEBUG_PROGNAME
config SYSTEM_DEBUGPOINT_PROGNAME
string "Program name"
default "debug"
default "debugpoint"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.

config SYSTEM_DEBUG_PRIORITY
config SYSTEM_DEBUGPOINT_PRIORITY
int "Task priority"
default 100

config SYSTEM_DEBUG_STACKSIZE
config SYSTEM_DEBUGPOINT_STACKSIZE
int "Stack size"
default DEFAULT_TASK_STACKSIZE

Expand Down
6 changes: 3 additions & 3 deletions system/debug/Make.defs → system/debugpoint/Make.defs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/system/debug/Make.defs
# apps/system/debugpoint/Make.defs
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Expand All @@ -18,6 +18,6 @@
#
############################################################################

ifneq ($(CONFIG_SYSTEM_DEBUG),)
CONFIGURED_APPS += $(APPDIR)/system/debug
ifneq ($(CONFIG_SYSTEM_DEBUGPOINT),)
CONFIGURED_APPS += $(APPDIR)/system/debugpoint
endif
8 changes: 4 additions & 4 deletions system/debug/Makefile → system/debugpoint/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
############################################################################
# apps/system/debug/Makefile
# apps/system/debugpoint/Makefile
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Expand All @@ -22,9 +22,9 @@ include $(APPDIR)/Make.defs

# debug built-in application info

PROGNAME = $(CONFIG_SYSTEM_DEBUG_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_DEBUG_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_DEBUG_STACKSIZE)
PROGNAME = $(CONFIG_SYSTEM_DEBUGPOINT_PROGNAME)
PRIORITY = $(CONFIG_SYSTEM_DEBUGPOINT_PRIORITY)
STACKSIZE = $(CONFIG_SYSTEM_DEBUGPOINT_STACKSIZE)
MODULE = $(CONFIG_SYSTEM_DEBUG)

# source files
Expand Down
2 changes: 1 addition & 1 deletion system/debug/debug.c → system/debugpoint/debug.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/system/debug/debug.c
* apps/system/debugpoint/debug.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down

0 comments on commit 2f5dc9c

Please sign in to comment.