I've made a "Hello World!" C file called a.c
.
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hello World!");
return 0;
}
To compile I run
clang -g a.c -o a.exe
To debug I run
C:folder>lldb a.exe
Current executable set to 'C:foldera.exe' (x86_64).
(lldb) run
I then try to put a breakpoint on line 5 with
(lldb) b 5
but I get
(lldb) b 5
error: No selected frame to use to find the default file.
error: No file supplied and no default file available.
(lldb)
When I am explicit and specify the file to put the breakpoint I get
(lldb) b a.c:5
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb)
Why is this happening? Is the debug information missing from the binary?
I'm using Windows 10 64-bit.
question from:
https://stackoverflow.com/questions/65849840/lldb-no-selected-frame-to-use-to-find-the-default-file-no-file-supplied-and-no 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…