tools: rename tools/gdb/nuttxgdb to tools/pynuttx/nxgdb

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2024-11-26 16:38:06 +08:00
committed by Xiang Xiao
parent 08fe636001
commit 50fb43e23b
32 changed files with 54 additions and 36 deletions
-2
View File
@@ -1,2 +0,0 @@
dist/
nuttxgdb.egg-info/
+2
View File
@@ -0,0 +1,2 @@
dist/
nxgdb.egg-info/
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/gdbinit.py # tools/pynuttx/gdbinit.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -29,9 +29,9 @@ if __name__ == "__main__":
if here not in sys.path: if here not in sys.path:
sys.path.insert(0, here) sys.path.insert(0, here)
if "nuttxgdb" in sys.modules: if "nxgdb" in sys.modules:
for key in list(sys.modules.keys()): for key in list(sys.modules.keys()):
if key.startswith("nuttxgdb"): if key.startswith("nxgdb"):
del sys.modules[key] del sys.modules[key]
import nuttxgdb # noqa: F401 import nxgdb # noqa: F401
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/__init__.py # tools/pynuttx/nxgdb/__init__.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -29,7 +29,7 @@ import gdb
if __name__ == "__main__": if __name__ == "__main__":
import sys import sys
gdb.write("Use nuttx/tools/gdb/gdbinit.py instead") gdb.write("Use nuttx/tools/pynuttx/gdbinit.py instead")
sys.exit(1) sys.exit(1)
here = path.dirname(path.abspath(__file__)) here = path.dirname(path.abspath(__file__))
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/debug.py # tools/pynuttx/nxgdb/debug.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttx_gdb/diagnose.py # tools/pynuttx/nxgdb/diagnose.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/dmesg.py # tools/pynuttx/nxgdb/dmesg.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/fs.py # tools/pynuttx/nxgdb/fs.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/gcore.py # tools/pynuttx/nxgdb/gcore.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/lists.py # tools/pynuttx/nxgdb/lists.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/macros.py # tools/pynuttx/nxgdb/macros.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -194,7 +194,7 @@ def do_expand(expr, macro_map):
# NOTE: Implement a fully functional parser which can # NOTE: Implement a fully functional parser which can
# preprocess all the C macros according to ISO 9899 standard # preprocess all the C marcos according to ISO 9899 standard
# may be an overkill, what we really care about are those # may be an overkill, what we really care about are those
# macros that can be evaluated to a constant value. # macros that can be evaluated to a constant value.
# #
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/memcheck.py # tools/pynuttx/nxgdb/memcheck.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/memdump.py # tools/pynuttx/nxgdb/memdump.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/memleak.py # tools/pynuttx/nxgdb/memleak.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/mm.py # tools/pynuttx/nxgdb/mm.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/net.py # tools/pynuttx/nxgdb/net.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttx_gdb/prefix.py # tools/pynuttx/nxgdb/prefix.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/profile.py # tools/pynuttx/nxgdb/profile.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/protocols/fs.py # tools/pynuttx/nxgdb/protocols/fs.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,6 +1,8 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/protocols/mm.py # tools/gdb/nuttxgdb/protocols/mm.py
# #
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The # this work for additional information regarding copyright ownership. The
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/protocols/thread.py # tools/pynuttx/nxgdb/protocols/thread.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/protocols/value.py # tools/pynuttx/nxgdb/protocols/value.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/protocols/wdog.py # tools/pynuttx/nxgdb/protocols/wdog.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/protocols/wqueue.py # tools/pynuttx/nxgdb/protocols/wqueue.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,7 @@
############################################################################ ############################################################################
# tools/gdb/rpmsg.py # tools/pynuttx/rpmsg.py
#
# SPDX-License-Identifier: Apache-2.0
# #
# Licensed to the Apache Software Foundation (ASF) under one or more # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with # contributor license agreements. See the NOTICE file distributed with
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/stack.py # tools/pynuttx/nxgdb/stack.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/thread.py # tools/pynuttx/nxgdb/thread.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/utils.py # tools/pynuttx/nxgdb/utils.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/wdog.py # tools/pynuttx/nxgdb/wdog.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -1,5 +1,5 @@
############################################################################ ############################################################################
# tools/gdb/nuttxgdb/wqueue.py # tools/pynuttx/nxgdb/wqueue.py
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
version = "0.0.1" version = "0.0.1"
name = 'nuttxgdb' name = 'nxgdb'
description = 'NuttX RTOS GDB extensions' description = 'NuttX RTOS GDB extensions'
readme = "README.md" readme = "README.md"
license = { file = 'LICENSE' } license = { file = 'LICENSE' }
@@ -19,4 +19,4 @@ dependencies = ["matplotlib", "numpy", "pyelftools"]
requires-python = ">=3.8" requires-python = ">=3.8"
[tool.setuptools.package-dir] [tool.setuptools.package-dir]
nuttxgdb = "nuttxgdb" nxgdb = "nxgdb"