GithubHelp home page GithubHelp logo

LLDB support? about llvm-mingw HOT 16 CLOSED

mstorsjo avatar mstorsjo commented on August 15, 2024
LLDB support?

from llvm-mingw.

Comments (16)

mstorsjo avatar mstorsjo commented on August 15, 2024 1

FWIW, I released a new version now, and this build now includes LLDB.

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

Yes, LLDB kind of should work. I've been working lately on making sure it works to build in a mingw setup, and to make it work for arm and arm64 as well (or at least compiles):
llvm/llvm-project@f4deacf
llvm/llvm-project@2e25c44
llvm/llvm-project@8969f8d
llvm/llvm-project@fb31852
llvm/llvm-project@8b98f12
llvm/llvm-project@638f072
llvm/llvm-project@02dddfd
llvm/llvm-project@b1f6ba2
(and a couple more)

There's still a few bits left before I'd prefer to enable it in my builds, because right now building still fails for arm32 because some bits are unimplemented. I could of course spend some extra effort to only enable lldb for i686/x86_64/arm64, complicating build-llvm.sh even more, but it's not far away to have it building nicely on all four architectures now.

from llvm-mingw.

vitalyster avatar vitalyster commented on August 15, 2024

Is it possible to include lldb-mi? Then it should work with vscode-cpptools without Python support

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

Hmm, lldb-mi seems to have been split out to a standalone repo, so it's a bit more hassle, but I guess it should be doable.

The main lldb repo does contain a tool called lldb-vscode though. Is that useful for the same purpose, or does it do something entirely different?

from llvm-mingw.

vitalyster avatar vitalyster commented on August 15, 2024

from llvm-mingw.

vitalyster avatar vitalyster commented on August 15, 2024

I checked lldb-vscode more carefully - looks like it does not need Python (it is third tool of the same type), should be great to include there instead of lldb-mi

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

Try https://martin.st/temp/llvm-mingw-x86_64-vscode.zip, which has lldb-vscode.exe included.

from llvm-mingw.

vitalyster avatar vitalyster commented on August 15, 2024

Thanks, I tested it but it does not work correctly, seems it needs collaboration with their developers/maintainers

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

Ok.

I tested building lldb-mi now, but it doesn't seem to support building for windows (not sure how much or little work is needed on it) - so my suggestion would be to try to figure out what the status of lldb-vscode is and how to make it work.

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

I tested building lldb-mi now, but it doesn't seem to support building for windows (not sure how much or little work is needed on it)

Apparently lldb-mi is included in the public releases of llvm for windows, so it should be supported, so it could be something in how I'm setting up my build, or it could be some recent breakage.

If you want to try that out, you could get the prebuilt versions of it from https://releases.llvm.org/download.html#9.0.0. Do note that the lldb parts of it require you to have exactly python36.dll available for it to run at all.

from llvm-mingw.

longnguyen2004 avatar longnguyen2004 commented on August 15, 2024

Some upgrade regarding lldb-mi:
Upstream has fixed building lldb-mi on mingw targets lldb-tools/lldb-mi#52, so if you feel like checking out another repo then give it a try

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

Some upgrade regarding lldb-mi:
Upstream has fixed building lldb-mi on mingw targets lldb-tools/lldb-mi#52, so if you feel like checking out another repo then give it a try

In #83 (comment) you mentioned that even if you managed to build lldb-mi, it didn't seem to work/do anything useful in vscode - has this changed, or are you just wanting to test a newer build (or use it with another IDE)?

from llvm-mingw.

SquallATF avatar SquallATF commented on August 15, 2024

I have build latest lldb-mi with latest release/11.x branch, it can works with vscode c++ extension.

from llvm-mingw.

longnguyen2004 avatar longnguyen2004 commented on August 15, 2024

are you just wanting to test a newer build (or use it with another IDE)?

I'm not sure if it works with VSCode now, and I don't really need it to work anyway, since VSCode has its own way of doing it (the Debug Adapter Protocol, which works wonderfully), so this is mainly for users with other IDE (like Qt Creator)

from llvm-mingw.

mstorsjo avatar mstorsjo commented on August 15, 2024

I looked into getting lldb-mi built as part of this - and https://martin.st/temp/llvm-mingw-11-test-x86_64.zip is a test build including it. Does it seem to work and do something meaningful for anyone?

from llvm-mingw.

longnguyen2004 avatar longnguyen2004 commented on August 15, 2024

I know someone who can help
@RussellHaley Can you please test lldb-mi in this package?

from llvm-mingw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.