lldb-tools / lldb-mi

LLDB's machine interface driver
https://lldb.llvm.org
Other
162 stars 53 forks source link

Wrong source file patch on windows #81

Closed SquallATF closed 3 years ago

SquallATF commented 3 years ago

when use lldb-mi with vscode , vscode show Unable to open 'test.cpp': Unable to read file '\test.cpp' (Error: Unable to resolve non-existing file '\test.cpp'). then I test gdb and lldb-mi difference gdb response

*stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x00007ff74b141486",func="main",args=[],file="D:\\/Work\\lldbtest\\test.cpp",fullname="D:\\Work\\lldbtest\\test.cpp",line="4",arch="i386:x86-64"},thread-id="1",stopped-threads="all"

lldb-mi response

*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={level="0",addr="0x00007ff74b141486",func="main",args=[],file="test.cpp",fullname="/test.cpp",line="4"},thread-id="1",stopped-threads="all"

the fullname is not full.

SquallATF commented 3 years ago

I found the reason, the root path have a file named test.cpp