This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

gdb 11.2-2022.02 does not start on Windows

I see that other people are running into issues with the Python 2.7 dependency of the GDB bundled with 11.2, but I'm having trouble starting it even with Python 2.7 installed.

I've installed on Windows 10 using the official installer, gcc-arm-11.2-2022.02-mingw-w64-i686-arm-none-eabi.exe. I have Python 2.7 first in my PATH, so python --version shows Python 2.7.15. There is no PYTHONPATH or PYTHON_HOME environment variable set.

When I try to start GDB with no arguments by running .\arm-none-eabi-gdb from the installation's bin directory, it prints ImportError: No module named site and exits. No arguments seem to have any effect or produce any useful debugging info. Curiously, on my other machine (also running Windows 10, same environment settings, and same Python 2 version), GDB exits immediately with no output.

What can I do to further troubleshoot this?

Parents
  • Hello,

    The latest (final) python 2.7 is 2.7.18:
    https://www.python.org/downloads/release/python-2718/

    However I believe any 2.7.x should work OK.

    I have no issues with this installed, running Win10, with 2.7 on my path, but not the default python:

    C:\Arm\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>python --version
    Python 3.7.3
    
    C:\Arm\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>C:\Python27\python --version
    Python 2.7.18
    
    C:\Arm\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>arm-none-eabi-gdb --version
    GNU gdb (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 11.2.90.20220202-git
    Copyright (C) 2022 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    c:\Arm\Compilers\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>arm-none-eabi-gdb
    GNU gdb (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 11.2.90.20220202-git
    Copyright (C) 2022 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
    Type "show configuration" for configuration details.

    A cursory search shows this ImportError is related to python, not gdb itself.

    In my install, I see in \\Python27\lib, two files, site.py, and site.pyc, the latter is timestamped with the date I installed/first used (unsure). Perhaps you need to enable write access to this folder? Is your Python27 under your Program Files folder?

Reply
  • Hello,

    The latest (final) python 2.7 is 2.7.18:
    https://www.python.org/downloads/release/python-2718/

    However I believe any 2.7.x should work OK.

    I have no issues with this installed, running Win10, with 2.7 on my path, but not the default python:

    C:\Arm\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>python --version
    Python 3.7.3
    
    C:\Arm\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>C:\Python27\python --version
    Python 2.7.18
    
    C:\Arm\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>arm-none-eabi-gdb --version
    GNU gdb (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 11.2.90.20220202-git
    Copyright (C) 2022 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    c:\Arm\Compilers\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin>arm-none-eabi-gdb
    GNU gdb (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 11.2.90.20220202-git
    Copyright (C) 2022 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
    Type "show configuration" for configuration details.

    A cursory search shows this ImportError is related to python, not gdb itself.

    In my install, I see in \\Python27\lib, two files, site.py, and site.pyc, the latter is timestamped with the date I installed/first used (unsure). Perhaps you need to enable write access to this folder? Is your Python27 under your Program Files folder?

Children