On Fri, Jan 24, 2025 at 2:23 AM Peter Barada <[email protected]> wrote:
> Looking further, I got the GDB command args wrong for version for 12.8 (12.8
> calls for gdbinit.py, not __init__.py), here's updated 12.8 output (which
> allows looking at threads and nsh_main callstack, but generates warnings on
> start):
Yeah calling __init__.py is not a good idea you need to import module
and this will run __init__.py for you anyways :-)
> Traceback (most recent call last):
> File "/home/peter/git/nuttx-9/nuttx/tools/gdb/nuttxgdb/__init__.py", line
> 54, in init_gdb_commands
> module = importlib.import_module(f"{__package__}.{m}")
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 995, in exec_module
> File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
> File "/home/peter/git/nuttx-9/nuttx/tools/gdb/nuttxgdb/fs.py", line 39, in
> <module>
> CONFIG_NFILE_DESCRIPTORS_PER_BLOCK = int(
Are you sure you have all python dependencies installed from
requirements.py [1] file with exact matching versions?
If not you may want to create a local python virtual environment so
there is no conflict with system packages, activate it, then install
all required packages with `pip install -r tools/gdb/requirements.txt`
:-)
[1] https://github.com/apache/nuttx/blob/master/tools/gdb/requirements.txt
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info