I'm on Windows 10, compiled llvm 11 with MSVC 16.
This is main.cpp:
#include <iostream>
int main()
{
std::cout << "Hello world" << std::endl;
}
These are the commands I run
clang -g -O0 main.cpp -o a.exe
lldb a.exe
(lldb) target create "a.exe
Current executable set to 'C:\a.exe' (x86_64).
(lldb) b main.cpp:5
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) b main
Breakpoint 2: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --name main
Breakpoint 3: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
What am I doing wrong?
I succeeded by recompiling llvm with these detailed instructions for compiling lldb on windows.
Specifically: