Skip to content

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

Closed

Description

@danocharron

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"

Activity

  1. brownts commented on Apr 22, 2022

    @brownts
    Collaborator

    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.

  2. danocharron commented on Apr 22, 2022

    @danocharron
    Author
  3. danocharron commented on Apr 22, 2022

    @danocharron
    Author
  4. brownts commented on Apr 22, 2022

    @brownts
    Collaborator

    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.

  5. self-assigned this
    on Apr 22, 2022
  6. danocharron commented on Apr 22, 2022

    @danocharron
    Author
  7. GitMensch commented on Apr 24, 2022

    @GitMensch
    Collaborator

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

  8. 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[/+] on Apr 24, 2022
  9. added this to the v0.26.1 milestone on Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions