Open YangYibiao opened 1 month ago
@llvm/issue-subscribers-lldb
Author: Alex (HelloAlexy)
I tried to reproduce this on macOS with top-of-tree LLDB and Clang. I wasn't able to hit the same issue, so it's possible the issue is specific to Linux (or even Ubuntu since you're using Ubuntu clang and Ubuntu lldb).
Does not reproduce on arch linux with latest trunk of LLDB and Clang.
This is happening during manual indexing. I'm surprised we're doing that anymore on up to date toolchains. Now that the index tables are part of standard DWARF, it is much better to use that...
Anyway, to reproduce this you're going to have to turn off emission of the DWARF index tables.
$ clang --version
$ lldb --version
$ cat small.c
$ clang -O0 -g small.c; lldb a.out
The code you provided is causing LLDB to hang after setting a breakpoint at main and attempting to run the program.