Comments (4)
At first glance escaping backslashes in the path argument of command break-insert
can help
from lldb-mi.
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.
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.
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)
- [Docs] Building on macOS HOT 2
- lldb-mi hangs on M1 macOS when creating variable HOT 14
- `-break-insert` response doesn't respect `target.source-map`
- `breakpoint-hit` event doesn't respect `target.source-map` for remote target
- Feature Request: add support for '@' parameter in the command "var-create"
- Build issue on Linux (Ubuntu 20) HOT 5
- lldb-mi does not implement gdb cwd interface causing vscode to debug from the wrong location HOT 1
- lldb-mi build fails on linux with "Undefined symbol: llvm::Twine::str() const" HOT 1
- lldb-mi exits launching my application with SIGKILL HOT 2
- lldb-mi hangs and starts consuming more and more memory when stopping at certain breakpoints in vscode-cpptools HOT 4
- Build failure on Ubuntu 20 LTS. HOT 13
- Feature request: may you please move this project back to llvm project? HOT 1
- build failed on ubuntu20 HOT 1
- lldb-mi prints extra characters, carriage return, etc. HOT 1
- Error while building this package HOT 4
- lldb-mi hangs on MacOS HOT 2
- error build in alt linux
- Incorrect fullname under windows when lldb-mi startup path and source path are not in the same partition
- ModuleNotFoundError: No module named 'lldb'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lldb-mi.