<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60798>60798</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Help] Use lldb on Windows, enable the configuration automatic completion function, and enable LIBEDIT
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          HTDPNJ
      </td>
    </tr>
</table>

<pre>
    I want to use lldb and its automatic completion function in Windows; 
So I set LLDB_ ENABLE_ LIBEDIT=ON, and LibEdit_ LIBRARIES =mypath/wineditline-2.206/bin64/libedit.dll.a; LibEdit_ INCLUDE_ DIRS = mypath/wineditline-2.206/src;
 However, the compiled lldb.exe crashed. 
**I would like to ask whether the lldb on Windows supports the automatic completion function and how to set it**
The log is as follows:
![image](https://user-images.githubusercontent.com/34398806/219318349-d9a9a7a0-423d-4810-9100-253ad50c20a5.png)

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.      Program arguments: lldb
 #0 0x00007ffdf2f83a8b el_get (E:\windows-x86_64\bin\liblldb.dll+0x27d3a8b)
 #1 0x00007ffdf1d7eb87 lldb_private::Editline::ApplyTerminalSizeChange() (E:\windows-x86_64\bin\liblldb.dll+0x15ceb87)
 #2 0x00007ffdf1d80da2 lldb_private::Editline::ConfigureEditor(bool) (E:\windows-x86_64\bin\liblldb.dll+0x15d0da2)
 #3 0x00007ffdf1d81d30 lldb_private::Editline::GetLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, bool&) (E:\windows-x86_64\bin\liblldb.dll+0x15d1d30)
 #4 0x00007ffdf0ffa022 lldb_private::IOHandlerEditline::GetLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, bool&) (E:\windows-x86_64\bin\liblldb.dll+0x84a022)
 #5 0x00007ffdf0ffaf2e lldb_private::IOHandlerEditline::Run() (E:\windows-x86_64\bin\liblldb.dll+0x84af2e)
 #6 0x00007ffdf0ba335d lldb_private::Debugger::RunIOHandlers() (E:\windows-x86_64\bin\liblldb.dll+0x3f335d)
 #7 0x00007ffdf0c170cf lldb_private::CommandInterpreter::RunCommandInterpreter(lldb_private::CommandInterpreterRunOptions&) (E:\windows-x86_64\bin\liblldb.dll+0x4670cf)
 #8 0x00007ffdf084da44 lldb::SBDebugger::RunCommandInterpreter(bool, bool) (E:\windows-x86_64\bin\liblldb.dll+0x9da44)
 #9 0x00007ff7152f3925 Driver::MainLoop() (E:\windows-x86_64\bin\lldb.exe+0x3925)
#10 0x00007ff7152f52c9 main (E:\windows-x86_64\bin\lldb.exe+0x52c9)
#11 0x00007ff7152f13ea __tmainCRTStartup /mnt/hongtao/workspace/ohllvm/third_party/mingw-w64/mingw-w64-crt/build\../crt\crtexe.c:321:13
#12 0x00007ff7152f1446 mainCRTStartup /mnt/hongtao/workspace/ohllvm/third_party/mingw-w64/mingw-w64-crt/build\../crt\crtexe.c:204:3
#13 0x00007ffe662c7614 (C:\Windows\System32\KERNEL32.DLL+0x17614)
#14 0x00007ffe67c626a1 (C:\Windows\SYSTEM32\ntdll.dll+0x526a1)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcl8tu4zoShp-G3hAWKFLXhRe2bE8840434jQGszIokZY4oUiBouJknn5AynGidNCXbA5wgsCQean66q-SWaR9L2rF-QLEKxCvZ3SwjTaLm_v1t9t_zkrNnhc7eKbKQqvh0HMoJSshVQwK20M6WN1SKypY6baT3Aqt4GlQlX8QCv5bKKbPPSArCNAaoOVBwx3suYX7_Xp1hJvb5Wq_OcL9brVZ7-4BWX-9BbjwDvai3DBh_eTd8m63OUBA1u1zR20D8PYsFGfCSqH4HAcYJQBvS6GSCOCtFKWbC5iUAQWbLVgVIF-9WtzdFvvv680Rrnd33ir8qdneVFcjYxjwRp_5IzeO1Tbchy8kZ16egD9xWBna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