jucipp icon indicating copy to clipboard operation
jucipp copied to clipboard

Debugging: lldb in MSYS2

Open eidheim opened this issue 9 years ago • 5 comments

Work on https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-clang is needed to achieve lldb support on MSYS2.

eidheim avatar Apr 12 '16 10:04 eidheim

lldb support has been worked on recently. I don't think 3.9.0 builds have been made though so you may need to compile it yourself for now.

mingwandroid avatar Nov 10 '16 20:11 mingwandroid

It doesn't have server right now (lldb-server compiles only in POSIX env) but you can try using unofficial servers like ds2.

EDIT: Wrong link fixed.

mati865 avatar Nov 18 '16 16:11 mati865

Thank you guys. I finally got around to test this, and after rebuild of mingw-w64-clang I could compile juCi++ with lldb support on MSYS2. I did not, however, test a lldb-server, but thank you @mati865 for the link to ds2.

One issue I found, was that I had to add .exe to the executable in liblldb (though I can do this manually through the menu item Debug, Set Run Arguments). I considered adding this automatically to juCi++ on MSYS2, but decided against it since it would cause problems when performing remote debugging from juCi++ in MSYS2 systems to other platforms that do not use the .exe postfix. Is this something that will/can be fixed in the MSYS2 package do you think @mati865 or @mingwandroid ?

eidheim avatar Nov 25 '16 18:11 eidheim

It should be possible but I'm out of time for now. If you decide to create patch for it yourself it will be appreciated.

mati865 avatar Nov 25 '16 19:11 mati865

For MSYS2 users: I temporarily fixed the .exe postfix issue by adding it when debugging in MSYS2 without using remote hosts.

eidheim avatar Nov 26 '16 13:11 eidheim