llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.41k stars 12.15k forks source link

[Help] Use lldb on Windows, enable the configuration automatic completion function, and enable LIBEDIT #60800

Open HTDPNJ opened 1 year ago

HTDPNJ commented 1 year ago

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

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump:

  1. 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, std::1::allocator >&, bool&) (E:\windows-x86_64\bin\liblldb.dll+0x15d1d30)

    4 0x00007ffdf0ffa022 lldb_private::IOHandlerEditline::GetLine(std::1::basic_string<char, std::__1::char_traits, std::1::allocator >&, 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)

llvmbot commented 1 year ago

@llvm/issue-subscribers-lldb