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

0.26.0 regression with remote debug: GDB cannot find source files because of lower-casing file paths #346

Closed
danocharron opened this issue Apr 22, 2022 · 6 comments · Fixed by #352
Assignees
Milestone

Comments

@danocharron
Copy link

I noticed on your latest version 0.26.0 that the breakpoint paths and file names are now all lower case.
My source file names and paths have upper-case and lower-case characters.

I am remote debugging from Windows to Linux through ssh.

I was looking forward to your improvements, but for now I guess I will revert to your 0.25.1 version.

More:


If I set "stopAtEntry": true, in my launch.json
Your APP will set a breakpoint at the Src/main.cpp

GDB -> App: {"outOfBandRecord":[{"isStream":true,"type":"console","content":"Temporary breakpoint 2, main (argc=1, argv=0x7fffffffebc8) at Src/main.cpp:4231\n"}]}
Temporary breakpoint 2, main (argc=1, argv=0x7fffffffebc8) at Src/main.cpp:4231


If I then put a breakpoint in the editor your APP will set the breakpoint like this:

GDB -> App: {"token":19,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[["bkpt",[["number","8"],["type","breakpoint"],["disp","keep"],["enabled","y"],["addr",""],["pending","/root/platform/src/main.cpp:4252"],["times","0"],["original-location","/root/platform/src/main.cpp:4252"]]]]}}

NOTE: the path name needs to have "Src" not "src"

@brownts
Copy link
Collaborator

brownts commented Apr 22, 2022

Hi @danocharron, thanks for this report.

Can you share your launch configuration? I suspect that this has to do with the path mapping configuration between the Windows and Linux machines, but I'd like to get a better understanding of what you currently have setup, so we can replicate the scenario.

@danocharron
Copy link
Author

danocharron commented Apr 22, 2022 via email

@danocharron
Copy link
Author

danocharron commented Apr 22, 2022 via email

@brownts
Copy link
Collaborator

brownts commented Apr 22, 2022

Thanks for that additional information. I'm pretty sure I know where the issue is. I'll take a look at it within the next few days and should be able to generate a new release with this fixed.

@brownts brownts self-assigned this Apr 22, 2022
@brownts brownts added the bug label Apr 22, 2022
@danocharron
Copy link
Author

danocharron commented Apr 22, 2022 via email

@GitMensch
Copy link
Collaborator

@brownts When working on this can you please check the issue in #332? The main question is where the translation should be done.

@GitMensch GitMensch changed the title GDB cannot find source files because version 0.26.0 does not respects file path and name case sensitivity. 0.26.0 regression with remote debug: GDB cannot find source files because of lower-casing file paths Apr 24, 2022
@GitMensch GitMensch added this to the v0.26.1 milestone Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants