Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GdbController cannot recognize window short path of gdb executable #65

Open
Hoohaha opened this issue May 31, 2022 · 1 comment
Open

Comments

@Hoohaha
Copy link

Hoohaha commented May 31, 2022

Describe the bug
When gdb executable is short format like this:
C:/PROGRA~2/GNUARM~1/102021~1.10/bin/AR470E~1.EXE

Full path: "C:\PROGRA2\GNUARM1\102021~1.10\bin\arm-none-eabi-gdb.exe"

Then the consrtuctor will raise error: gdb executable could not be resolved from

Checked the code, function distutils.spawn.find_executable() will return None for C:/PROGRA~2/GNUARM~1/102021~1.10/bin/AR470E~1.EXE

To Reproduce

gdb = GdbController(`C:/PROGRA~2/GNUARM~1/102021~1.10/bin/AR470E~1.EXE`)
@barisione
Copy link
Collaborator

I'm not a Windows user so I'm not sure if I can help. From a quick search on Google I didn't find any way to convert paths like that with pre-installed Python modules.
Is there any chance you could help fixing this please?

What happens if you try shutil.which instead of distutils.spawn.find_executable (which is deprecated)? Same problem?
If yes, maybe this is a Python bug not a pygdbmi one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants