XuNeo opened a new pull request, #15740:
URL: https://github.com/apache/nuttx/pull/15740

   
   ## Summary
   
   Renames `tools/gdb/nuttxgdb` → `tools/pynuttx/nxgdb`
   
   Establishes `pynuttx` as the root directory for future Python package 
development
   
   Prepares for publishing `nxgdb` as an installable package (`pip install 
nxgdb`)
   
   
   
   ## Impact
   
   Enables direct package import in GDB:
   
   ```python
   (gdb) py import nxgdb  # Instead of manual path sourcing
   ```
   
   Simplifies dependency management via PyPI
   
   The original method still works, allowing to import latest python script, 
making it easy during python script development.
   
   ```python
   (gdb) source /path/to/nuttx/tools/pynuttx/gdbinit.py
   ```
   
   ### Future Work
   
   Gradually migrate other Python utilities to pynuttx and publish pynuttx as a 
namespace package.
   
   ## Testing
   
   Test package already published on PyPI 
([nxgdb](https://pypi.org/project/nxgdb/))
   
   Verified working installation flow:
   
   qemu + GDB, now we can use `py import nxgdb` and legacy `source gdbinit.py`
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to