Code Monkey home page Code Monkey logo

Comments (4)

tkrasnukha avatar tkrasnukha commented on June 17, 2024

At first glance escaping backslashes in the path argument of command break-insert can help

from lldb-mi.

royqh1979 avatar royqh1979 commented on June 17, 2024

Confirmed. I've tested the lldb-mi distributed with msys2 clang64 (mingw-w64-clang-x86_64-lldb-mi r83.2388bd7-1), and -break-insert always failed with 'not found', no matter '/' or '' used as path delimiter:
-break-insert --source "G:\test.cpp" --line 6
^error,msg="Command 'break-insert'. Breakpoint location 'G:\\test.cpp' not found"

-break-insert --source "G:/test.cpp" --line 6
^error,msg="Command 'break-insert'. Breakpoint location 'G:/test.cpp' not found"

from lldb-mi.

royqh1979 avatar royqh1979 commented on June 17, 2024

It seems that lldb doesn't recognize windows absolute file path starting with a drive letter and ':'

g:\>lldb test.exe
(lldb) target create "test.exe"
Current executable set to 'g:\test.exe' (x86_64).
(lldb) breakpoint set --file test.cpp --line 6
Breakpoint 1: where = test.exe`main + 38 at test.cpp:6:13, address = 0x0000000140001496
(lldb) breakpoint set --file g:\test.cpp --line 6
Breakpoint 2: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --file g:/test.cpp --line 6
Breakpoint 3: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb)

from lldb-mi.

acotty avatar acotty commented on June 17, 2024

When moving to the DAP interface instead of MI it was found that on Windows you need to compile using -gdwarf-4 instead of -ggdb.
As such I am closing this issue as I no loner need it fixed.

from lldb-mi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.