symbols path problem in embedded project with WSL build

Sysprogs forums Forums VisualGDB symbols path problem in embedded project with WSL build

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31502
    coolbash
    Participant

    I have an embedded stm32 project that compiles with Makefile. The makefile is written for linux and doesn’t work in Windows but works fine in WSL.

    To make it work in VisualGDB I’ve created a new project -> “Import project built with command-line tools” -> “Specify a build command line manually”.

    For build command I used wsl.exe with parameter make.

    It builds fine. I can flash it and debug it but only in disassembly mode. I can’t debug from source code or place any breakpoint. On any breakpoint it says “cannot resolve breakpoint location”.

    In disassembly window I see code lines and strange path to the source file:

    — C:\proj\bf\C:\proj\bf\src\main\main.c ———————————-

    How to fix this?

    #31512
    support
    Keymaster

    Hi,

    You should be able to resolve it via VisualGDB Project Properties -> Path Mapping. Simply try mapping the incorrect path e.g. (C:\proj\bf\C:\proj) to the correct one (C:\proj) and VisualGDB will automatically adjust the paths reported by GDB.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.