mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
tools: rename tools/gdb/nuttxgdb to tools/pynuttx/nxgdb
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
dist/
|
||||
nuttxgdb.egg-info/
|
||||
@@ -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
|
||||
#
|
||||
@@ -29,9 +29,9 @@ if __name__ == "__main__":
|
||||
if here not in sys.path:
|
||||
sys.path.insert(0, here)
|
||||
|
||||
if "nuttxgdb" in sys.modules:
|
||||
if "nxgdb" in sys.modules:
|
||||
for key in list(sys.modules.keys()):
|
||||
if key.startswith("nuttxgdb"):
|
||||
if key.startswith("nxgdb"):
|
||||
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
|
||||
#
|
||||
@@ -29,7 +29,7 @@ import gdb
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
gdb.write("Use nuttx/tools/gdb/gdbinit.py instead")
|
||||
gdb.write("Use nuttx/tools/pynuttx/gdbinit.py instead")
|
||||
sys.exit(1)
|
||||
|
||||
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
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/dmesg.py
|
||||
# tools/pynuttx/nxgdb/dmesg.py
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/gcore.py
|
||||
# tools/pynuttx/nxgdb/gcore.py
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/macros.py
|
||||
# tools/pynuttx/nxgdb/macros.py
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
@@ -194,7 +194,7 @@ def do_expand(expr, macro_map):
|
||||
|
||||
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
#
|
||||
@@ -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
|
||||
# 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
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttx_gdb/prefix.py
|
||||
# tools/pynuttx/nxgdb/prefix.py
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -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
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
@@ -1,6 +1,8 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/protocols/mm.py
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/protocols/wqueue.py
|
||||
# tools/pynuttx/nxgdb/protocols/wqueue.py
|
||||
#
|
||||
# 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
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/thread.py
|
||||
# tools/pynuttx/nxgdb/thread.py
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# tools/gdb/nuttxgdb/wdog.py
|
||||
# tools/pynuttx/nxgdb/wdog.py
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
version = "0.0.1"
|
||||
name = 'nuttxgdb'
|
||||
name = 'nxgdb'
|
||||
description = 'NuttX RTOS GDB extensions'
|
||||
readme = "README.md"
|
||||
license = { file = 'LICENSE' }
|
||||
@@ -19,4 +19,4 @@ dependencies = ["matplotlib", "numpy", "pyelftools"]
|
||||
requires-python = ">=3.8"
|
||||
|
||||
[tool.setuptools.package-dir]
|
||||
nuttxgdb = "nuttxgdb"
|
||||
nxgdb = "nxgdb"
|
||||
Reference in New Issue
Block a user