News for hackers. Stuff that matters.
Re:LLDB debugger is coming to Windows by bithush on Tuesday January 20, 2015 @03:33PM (#8919342)
I am looking forward to the day when I can have a full Clang/LLVM environment on my Windows machines without relying on MinGW. Hopefully this year!
Re:LLDB debugger is coming to Windows by stinos on Tuesday January 20, 2015 @04:07PM (#8919587)
..and integrated in VS so you can just select Toolset = Clang :P
Re:LLDB debugger is coming to Windows by bithush on Tuesday January 20, 2015 @05:47PM (#8920216)
Especially with the Community Edition of VS making it really easy for pretty much anyone to get access to VS.

I like GCC and everything but I will be happy to leave it behind if I am honest. The politics are just too damn much for me these days. GCC should be about building a great compiler collection for the world but politics plays too big a part in it as seen with the whole AST debate going on again because of RMS. I just want a good compiler and standard library implementation. Between Clang/LLVM and VS Community I don't know if GCC will really have a huge place in the future for me.

Re:LLDB debugger is coming to Windows by 0xFFC on Wednesday January 21, 2015 @12:08AM (#8921557)
for you and people like you of course . people whos care about software freedom of course choosing GCC.
Re:LLDB debugger is coming to Windows by anon1385 on Wednesday January 21, 2015 @02:53AM (#8922025)
Except the ones who want to do things that are 'forbidden' by RMS. Those people have no choice but to use LLVM. For example, a lot of academic work on compilers and languages can't easily use GCC, neither can people wanting to make more sophisticated tooling.
Re:LLDB debugger is coming to Windows by vetinari on Wednesday January 21, 2015 @04:44AM (#8922303)
The point of GCC is having a good compiler available to everyone, for any use. Not to be embedded everywhere in the look-but-don't-touch fashion.

See also Linux kernels in most Android phones. That's exactly what GCC authors do not want.

Re:LLDB debugger is coming to Windows by pjc50 on Wednesday January 21, 2015 @07:03AM (#8922668)
a lot of academic work on compilers and languages can't easily use GCC

Could you explain why not? GPL-incompatible release requirements on the code produced? Admittedly it's not a very accessible codebase either.

Re:LLDB debugger is coming to Windows by pjmlp on Wednesday January 21, 2015 @08:00AM (#8922856)
I think it has to do with their plugins API, or lack thereof.
Re:LLDB debugger is coming to Windows by bithush on Wednesday January 21, 2015 @04:37PM (#8925935)
Clang currently supports my freedoms more than GCC with its political limitations holding it back.
Re:LLDB debugger is coming to Windows by taspeotis on Tuesday January 20, 2015 @07:26PM (#8920689)
Well it's coming to VS2015, just not for desktop apps. I assume that having the integration for any one platform greatly lowers the barrier for other platforms, though.

> In Visual Studio 2015, that cross-platform reach is going to include C++, too. Microsoft's development environment will include support for the Clang compiler and LLVM infrastructure for targeting Android and, in a later iteration, iOS.

http://arstechnica.com/information-technology/2014/11/visual...

Re:LLDB debugger is coming to Windows by mitchty on Wednesday January 21, 2015 @01:10AM (#8921755)
Already exists to a degree for some time.

http://llvm.org/builds/

Under Windows Snapshot Builds.

LLVM video on it from last year. https://www.youtube.com/watch?v=PX3UOXAlk0A

Slides from said talk http://llvm.org/devmtg/2014-04/PDFs/Talks/clang-cl.pdf

Re:LLDB debugger is coming to Windows by jbandela1 on Tuesday January 20, 2015 @02:56PM (#8919096)
I think this is awesome. Looking forward to libc++ being made to work on Windows. Then I will have a fully conformant c++ compiler and standard library across all the major platforms.
Re:LLDB debugger is coming to Windows by getsat on Tuesday January 20, 2015 @05:55PM (#8920255)
Isn't Linux support in libc++ still not 100%? I'm using libc++/c++14 on a new project and I love it! Much better than my last experience with c++ (c++98).

I was worried about using libc++, but I recently found a great VPS provider which lets you install from an ISO so I can run FreeBSD in production. I no longer have any need for Linux. Develop on OSX, deploy on FreeBSD.

Re:LLDB debugger is coming to Windows by Sanddancer on Tuesday January 20, 2015 @09:08PM (#8921073)
It's not quite 100%. There are still a few outstanding faults, mostly due to different localization assumptions made by the underlying libc. http://libcxx.llvm.org/results.Linux.html
Re:LLDB debugger is coming to Windows by getsat on Wednesday January 21, 2015 @07:44PM (#8926803)
Thanks for the link!
Re:LLDB debugger is coming to Windows by DannyBee on Tuesday January 20, 2015 @02:29PM (#8918913)
For the curious, this will eventually integrate with Visual Studio.
Re:LLDB debugger is coming to Windows by xpaulbettsx on Tuesday January 20, 2015 @07:04PM (#8920596)
I realize this is difficult, but if you're working with Microsoft to make this happen, having a version of LLVM that generated PDBs would be amazing for interoperability, there's a lot of stuff in WinDbg (open the help file, it's actually a giant book of Windows-specific knowledge) and redoing it is definitely non-trivial (and in many cases only can be done by Microsoft because it relies on internal data structures)
Re:LLDB debugger is coming to Windows by reubenmorais on Tuesday January 20, 2015 @05:44PM (#8920192)
ossreality: you are shadowbanned. DannyBee knows because he works on LLVM.
Re:LLDB debugger is coming to Windows by rossy on Wednesday January 21, 2015 @01:36AM (#8921838)
As a MinGW user, I'm pretty excited for this. Using GDB on Windows isn't even a perfect solution for MinGW programs, since they depend on Windows DLLs that use Microsoft format debug information. If LLDB supported both DWARF and PDB files, I'd finally be able to get a full stack trace with proper symbols for all frames.
Re:LLDB debugger is coming to Windows by xvilka on Tuesday January 20, 2015 @06:21PM (#8920384)
By the way, radare2 (from git) currently can be built for/under Windows and supports both PDB and WinDbg, as well as DWARF.
Re:LLDB debugger is coming to Windows by blt on Tuesday January 20, 2015 @05:36PM (#8920146)
It faces tough competition from the excellent Visual Studio debugger, but I hope they succeed. A compiler monoculture is bad.
Re:LLDB debugger is coming to Windows by alkonaut on Tuesday January 20, 2015 @04:05PM (#8919564)
Does this have any implications for Rust on windows?
Re:LLDB debugger is coming to Windows by zturner on Tuesday January 20, 2015 @04:16PM (#8919650)
Minor implications, perhaps. Much of what was done to reach this point was just making LLDB not fall over miserably on Windows. Like, to compile.. Or to not crash on startup for example :)

Anyone who decides they're interested in making Rust programs debuggable with LLDB will be able to benefit from this work by not having to do it. Also a core debug loop is going to be the same on Windows no matter what programming language is being debugged. I don't know what Rust's generated code looks like, but presumably it will be able to reuse the core debug loop and symbol reading code to some extent, although it will need to deal with ABI specific differences, put in its own expression evaluator, and things like that.

TL;DR - Someone from the Rust community will still have their work cut out for them, but if they're so motivated then they at least some of the work done here will benefit them.

Re:LLDB debugger is coming to Windows by fithisux on Wednesday January 21, 2015 @02:15AM (#8921929)
While mingw is the king in windows, it is beneficial if other c-compiler projects provide alternatives. One day, clang will come as a complete alternative (modulo winapi headers) combined with libc++ eventual implementation. Personally I would like to see other dbg projects like mago materialize for dlang native debugging. From what I see, LLDB could be useful for LDC2.

But I do not know if LLDB debugs only MSVC debugger format or also Dwarf on windows? Is it only specific to clang-cl?

Re:LLDB debugger is coming to Windows by jesuslop on Tuesday January 20, 2015 @03:38PM (#8919378)
PDB support is very sweet to have.
Re:LLDB debugger is coming to Windows by 12423gsd on Tuesday January 20, 2015 @03:37PM (#8919367)
Not to be cynical, but what's in it for Apple?

Obviously someone at Apple decided this makes business sense. What's the thinking?

Re:LLDB debugger is coming to Windows by nekitamo on Tuesday January 20, 2015 @03:38PM (#8919374)
I believe it's mostly people at Google pushing this feature. I don't think Apple had much of a say in it.
Re:LLDB debugger is coming to Windows by 12423gsd on Tuesday January 20, 2015 @03:52PM (#8919487)
Oh sorry. I was under the impression that Apple was in charge of the LLVM project
Re:LLDB debugger is coming to Windows by DannyBee on Tuesday January 20, 2015 @04:06PM (#8919578)
No. The LLVM foundation is. By numbers, Apple probably isn't even the largest contributor anymore (but this is just a guess based on mailing list traffic)
Re:LLDB debugger is coming to Windows by bla2 on Tuesday January 20, 2015 @04:21PM (#8919701)
They probably would be if swift was open-source.
Re:LLDB debugger is coming to Windows by DannyBee on Tuesday January 20, 2015 @04:44PM (#8919852)
Probably not, actually.

But it also depends on what you count. Google definitely has more people working directly on LLVM itself than Apple (At Google, they almost all work for me, and I know the numbers for Apple).

If you start to include related open source projects (like clang, etc), the numbers get closer, but then you have things like all of the Android related open source stuff that gets worked on (Renderscript), etc.

In any case, i'm not sure what the goal of any corporate measuring contest would be here. We are all friendly and working on the same open source projects. It's not about what "Google is doing" or "Apple is doing" but "what is getting done in the LLVM project".

Re:LLDB debugger is coming to Windows by sanxiyn on Tuesday January 20, 2015 @11:36PM (#8921455)
Google and Apple used to be friendly and working on the same open source project named WebKit. Looking at the precedent, it is not unreasonable to consider such things, even if everything is okay in LLVM at the moment.
Re:LLDB debugger is coming to Windows by DannyBee on Wednesday January 21, 2015 @11:28AM (#8923778)
These projects have very different means and goals. They also have very different governance, etc.

In any case, i'm still not sure what we are "considering" here.

Re:LLDB debugger is coming to Windows by zturner on Tuesday January 20, 2015 @04:07PM (#8919583)
The LLVM project as a whole has many contributors from many different companies working on things they care about and contributing it back to the community.